mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge pull request #823 from lavrton/extendEvents
Some event methods aliases
This commit is contained in:
commit
627040990b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user