uzairfarooq / arrive

Watch for DOM elements creation and removal
MIT License
869 stars 99 forks source link

Can the leave function optionally check if the target element is non-existent? #63

Closed Mattwmaster58 closed 4 years ago

Mattwmaster58 commented 7 years ago

It would be really nice (:

uzairfarooq commented 4 years ago

The leave can still work even if there's no target element because the leave takes a selector and an element with the selector can be added to DOM at any time in future.

Would make sense if we add support in leave to take an element as argument.

Mattwmaster58 commented 4 years ago

Feel to free to reopen if this is a good idea, but I have no idea what I was asking for here.