3

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?

Lance Roberts
  • 22,383
  • 32
  • 112
  • 130
MrMaksimize
  • 542
  • 1
  • 6
  • 20

1 Answers1

5

To duplicate the behaviour of returning false in a jQuery event handler you need to call event.preventDefault() and event.stopPropagation().

Richard M
  • 14,244
  • 6
  • 52
  • 48