Closed toobull closed 6 years ago
add passive feature when use on for event bind,and once support too,but not support capture.
passive
on
once
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])
not pass testHandlerWithFunctionAsData's test
testHandlerWithFunctionAsData
add
passive
feature when useon
for event bind,andonce
support too,but not supportcapture
.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])