mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 09:07:30 +08:00
Merge pull request #138 from pavelpower/master
use function simulate for user event
This commit is contained in:
@@ -593,9 +593,10 @@ Kinetic.Node.prototype = {
|
||||
* @name simulate
|
||||
* @methodOf Kinetic.Node.prototype
|
||||
* @param {String} eventType
|
||||
* @param {Object} event attribute
|
||||
*/
|
||||
simulate: function(eventType) {
|
||||
this._handleEvent(eventType, {});
|
||||
simulate: function(eventType, evt) {
|
||||
this._handleEvent(eventType, evt || {});
|
||||
},
|
||||
/**
|
||||
* get absolute transform of the node which takes into
|
||||
|
||||
Reference in New Issue
Block a user