more event methods

This commit is contained in:
Лаврёнов Антон 2014-02-21 09:03:21 +08:00
parent f8ccd574cb
commit e97f3a4138

View File

@ -380,6 +380,12 @@
}
return this;
},
dispatchEvent: function(evt) {
this.fire(evt.type, evt);
},
addEventListener: function() {
this.on.apply(this, arguments);
},
/**
* remove self from parent, but don't destroy
* @method