Browse files

fixed bug with isDragging method

  • Loading branch information...
1 parent 15aeaba commit cb68fa02150a2ee6549b0482734c8ffe50b55396 @ericdrowell committed Aug 20, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 dist/kinetic-core.js
  2. +2 −2 dist/kinetic-core.min.js
  3. +1 −1 src/Node.js
View
2 dist/kinetic-core.js
@@ -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
View
4 dist/kinetic-core.min.js
2 additions, 2 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 src/Node.js
@@ -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

0 comments on commit cb68fa0

Please sign in to comment.