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

Add helper for listening to jQuery events #48

Merged
merged 1 commit into from
Apr 2, 2018
Merged

Conversation

chasenlehara
Copy link
Member

@chasenlehara chasenlehara commented Mar 12, 2018

This helper can be used when another module registers $.event.special events and you need to listen to those events with can-dom-events.

Docs:
screen shot 2018-03-12 at 12 29 33 pm

This helper can be used when another module registers $.event.special events and you need to listen to those events with can-dom-events.
@chasenlehara chasenlehara changed the title WIP (needs docs): Add helper for listening to jQuery events Add helper for listening to jQuery events Mar 12, 2018
$(target).off(eventType, handler);
}
};
var removeEvent = domEvents.addEvent(eventDefinition);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to check if the event is already in domEvents so there are no errors.

@chasenlehara chasenlehara merged commit 4adc772 into master Apr 2, 2018
@chasenlehara chasenlehara deleted the add-jquery-events branch April 2, 2018 16:33
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.

None yet

2 participants