fixed bug related to multiple drag and drop initializations

This commit is contained in:
Eric Rowell
2012-04-01 09:32:20 -07:00
parent 6889cd742c
commit 3a8afc747c
4 changed files with 88 additions and 48 deletions

View File

@@ -381,7 +381,7 @@ Kinetic.Node.prototype = {
*/
draggable: function(isDraggable) {
if(this.draggable !== isDraggable) {
if(isDraggable) {
if(isDraggable && this.isDragging()) {
this._initDrag();
}
else {