Browse Source

#199: + check 'dataTransfer' exists

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

2
Sortable.js

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

Loading…
Cancel
Save