Skip to content

Commit

Permalink
Modified to initialize variables in _onDrop. so destory function does…
Browse files Browse the repository at this point in the history
… not work well.
  • Loading branch information
shimizu daisuke committed Nov 25, 2015
1 parent 6952f3b commit 7370f0a
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7370f0a

Please sign in to comment.