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); this._loopId = setInterval(this._emulateDragOver, 150);
} }
else { else {
dataTransfer.effectAllowed = 'move'; if (dataTransfer) {
options.setData && options.setData.call(this, dataTransfer, dragEl); dataTransfer.effectAllowed = 'move';
options.setData && options.setData.call(this, dataTransfer, dragEl);
}
_on(document, 'drop', this); _on(document, 'drop', this);
} }

Loading…
Cancel
Save