Merge pull request #823 from lavrton/extendEvents

Some event methods aliases
This commit is contained in:
Anton Lavrenov 2014-02-24 23:48:23 +07:00
commit 627040990b

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