-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first argument to 'leave' event should be optional #13
Comments
leave
event should be optional
A test case fails for the issue when some parent element of the target element gets removed from DOM. That's because we attach mutation event to parent element and when parent element directly gets removed the mutation event does not fire. Any suggestion is welcome. |
@uzairfarooq Is there a reason why the event handler is not attached to the document element? Performance reasons? |
@matt-curtis wanted to avoid that for performance reasons but I guess it's okay to attach it to document element as I don't see any other solution. |
So, to listen for removal of
.test-elem
, one can simply write:instead of:
The text was updated successfully, but these errors were encountered: