mirror of
https://github.com/konvajs/konva.git
synced 2025-10-14 03:24:54 +08:00
Merge pull request #823 from lavrton/extendEvents
Some event methods aliases
This commit is contained in:
@@ -380,6 +380,12 @@
|
|||||||
}
|
}
|
||||||
return this;
|
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
|
* remove self from parent, but don't destroy
|
||||||
* @method
|
* @method
|
||||||
|
Reference in New Issue
Block a user