Browse Source

Modified to initialize variables in _onDrop. so destory function does not work well.

pull/670/head
shimizu daisuke 9 years ago
parent
commit
7370f0a8cf
  1. 41
      Sortable.js

41
Sortable.js

@ -808,31 +808,34 @@
}
}
// Nulling
rootEl =
dragEl =
parentEl =
ghostEl =
nextEl =
cloneEl =
}
this._nulling();
},
scrollEl =
scrollParentEl =
_nulling: function() {
// Nulling
rootEl =
dragEl =
parentEl =
ghostEl =
nextEl =
cloneEl =
tapEvt =
touchEvt =
scrollEl =
scrollParentEl =
moved =
newIndex =
tapEvt =
touchEvt =
lastEl =
lastCSS =
moved =
newIndex =
activeGroup =
Sortable.active = null;
}
},
lastEl =
lastCSS =
activeGroup =
Sortable.active = null;
},
handleEvent: function (/**Event*/evt) {
var type = evt.type;

Loading…
Cancel
Save