justin-schroeder / arrow-js

Reactivity without the framework

Home Page:https://arrow-js.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supports automatic unsubscribe from DOM events?

neezer opened this issue · comments

arrow-js.com reads:

You can bind an event listener to a DOM element by using the @eventName short hand. This automatically performs a document.addEventListener('eventName') and registers your expression as the event handler.

When that element is removed from the DOM, are all references cleaned up so that the event listeners are GCed properly?