Skip to content

Conversation

@riyazshaikh
Copy link

A couple of fixes/enhancements I made to make your code work for my usage.

Primary use is to listen to first match on comma separated selectors.
Fixes bug with initializing multiple selector-listeners at the same
time.
@riyazshaikh riyazshaikh changed the title Ability to cancel future events on return false Ability to cancel future events on return false / Avoid generating keyframe selectors with same id Oct 13, 2015
Added onSelector() to stop after single selector.
Added visibility:hidden to hide elements we’re listening for, until
they have been modified.
Better way to delete stylesheet rules
@csuwildcat
Copy link
Owner

I have added a simple counter to ensure that every listener has a different ID. This should cover half this pull request. I still don't feel right to change what return false does due to the behavior of native DOM APIs folks are already used to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants