Browse Source

Merge pull request #1075 from billy-hardy/master

Add null checks
pull/1039/merge
Lebedev Konstantin 8 years ago committed by GitHub
parent
commit
a304be9e25
  1. 4
      Sortable.js
  2. 2
      Sortable.min.js

4
Sortable.js

@ -887,11 +887,11 @@
!options.dropBubble && evt.stopPropagation(); !options.dropBubble && evt.stopPropagation();
} }
ghostEl && ghostEl.parentNode.removeChild(ghostEl); ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
if (rootEl === parentEl || Sortable.active.lastPullMode !== 'clone') { if (rootEl === parentEl || Sortable.active.lastPullMode !== 'clone') {
// Remove clone // Remove clone
cloneEl && cloneEl.parentNode.removeChild(cloneEl); cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
} }
if (dragEl) { if (dragEl) {

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save