Browse Source

#199: + check 'dataTransfer' exists

requirejs
RubaXa 10 years ago
parent
commit
0ffa616f10
  1. 6
      Sortable.js

6
Sortable.js

@ -372,8 +372,10 @@
this._loopId = setInterval(this._emulateDragOver, 150);
}
else {
dataTransfer.effectAllowed = 'move';
options.setData && options.setData.call(this, dataTransfer, dragEl);
if (dataTransfer) {
dataTransfer.effectAllowed = 'move';
options.setData && options.setData.call(this, dataTransfer, dragEl);
}
_on(document, 'drop', this);
}

Loading…
Cancel
Save