In Backbone.js how do I stop an event from being passed to parent views?
I have a view that contains instances of itself. Whenever there is an event generated in the child, the parent also gets the event, how do I stop this behavior?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you mean HTML events?
Backbone uses jQuery for it’s HTML event handling, and jQuery event callbacks provide an argument that you can stop the bubbling up with: http://api.jquery.com/event.stopPropagation/