mirror of
https://github.com/konvajs/konva.git
synced 2025-10-14 11:44:55 +08:00
more event methods
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