Reputation: 542
I'm trying to bind an event handler to a click function using zepto.js. Normally in JQuery I can just say return false and the actual click will never go through. Does Zepto not support this? And if so, how to get around this?
Upvotes: 3
Views: 2302
Reputation: 14543
To duplicate the behaviour of returning false in a jQuery event handler you need to call event.preventDefault()
and event.stopPropagation()
.
Upvotes: 5