fixed bug with isDragging method

This commit is contained in:
Eric Rowell
2012-08-20 23:10:05 -07:00
parent 15aeabacc1
commit cb68fa0215
3 changed files with 4 additions and 4 deletions

View File

@@ -1802,7 +1802,7 @@ Kinetic.Node = Kinetic.Class.extend({
*/
isDragging: function() {
var go = Kinetic.Global;
return go.drag.node !== undefined && go.drag.node._id === this._id && go.drag.moving;
return go.drag.node && go.drag.node._id === this._id && go.drag.moving;
},
/**
* move node to another container

File diff suppressed because one or more lines are too long

View File

@@ -582,7 +582,7 @@ Kinetic.Node = Kinetic.Class.extend({
*/
isDragging: function() {
var go = Kinetic.Global;
return go.drag.node !== undefined && go.drag.node._id === this._id && go.drag.moving;
return go.drag.node && go.drag.node._id === this._id && go.drag.moving;
},
/**
* move node to another container