mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 09:07:30 +08:00
fixed bug with isDragging method
This commit is contained in:
2
dist/kinetic-core.js
vendored
2
dist/kinetic-core.js
vendored
@@ -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
|
||||
|
||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user