Merge pull request #138 from pavelpower/master

use function simulate for user event
This commit is contained in:
ericdrowell
2012-11-02 09:12:07 -07:00

View File

@@ -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