Browse Source

Merge pull request #670 from tori3/modify_destroy_func

Modified to initialize variables in _onDrop. so destory function does…
pull/729/head
Lebedev Konstantin 9 years ago
parent
commit
0b0da56b7d
  1. 41
      Sortable.js

41
Sortable.js

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

Loading…
Cancel
Save