Closed mixed closed 7 years ago
Sometime, Users want to bind one time. If there is no once, attch event and should be detach event. It is too complicated.
once
var fp = function(){ // do something a.off(fp); } a.on(fp);
->
var fp = function(){ // do something } a.once(fp);
Description
Sometime, Users want to bind one time. If there is no
once
, attch event and should be detach event. It is too complicated.Steps to check or reproduce
->