removeEventListener for better HammerJS support

This commit is contained in:
Лаврёнов Антон
2014-04-15 08:51:18 +08:00
parent 0bba93c4fa
commit 61542ea6cc
3 changed files with 13 additions and 7 deletions

View File

@@ -418,11 +418,14 @@
this.fire(evt.type, e);
},
addEventListener: function(type, handler) {
// we to pass native event to handler
// we have to pass native event to handler
this.on(type, function(evt){
handler.call(this, evt.evt);
});
},
removeEventListener : function(type) {
this.off(type);
},
/**
* remove self from parent, but don't destroy
* @method