Skip to content
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

Ability to cancel future events on return false / Avoid generating keyframe selectors with same id #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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