MrMaksimize
MrMaksimize

Reputation: 542

Zepto.js doesn't return false?

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

Answers (1)

Richard M
Richard M

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

Related Questions