madrobby / zepto

Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API
http://zeptojs.com
Other
15k stars 3.93k forks source link

add passive feature #1338

Closed toobull closed 6 years ago

toobull commented 6 years ago

add passive feature when use on for event bind,and once support too,but not support capture.

use like these type: on(type, [selector], function(e){ ... }, options) on(type, [selector], [data], function(e){ ... }, options)

not support: on({ type: handler, type2: handler2, ... }, [selector]) on({ type: handler, type2: handler2, ... }, [selector], [data])

toobull commented 6 years ago

not pass testHandlerWithFunctionAsData's test