Browse Source

check for existence of dataTransfer

As done in the other place where `dataTransfer` is used.
This is to support fake html5 drag and drop events, where `dataTransfer` is not accessible. Use case: Selenium testing with ePages-de/chromedriver-html5-dragdrop
pull/521/head
Paolo Priotto 10 years ago
parent
commit
f7af4b15ac
  1. 2
      Sortable.js
  2. 2
      Sortable.min.js

2
Sortable.js

@ -955,7 +955,9 @@
function _globalDragOver(/**Event*/evt) {
if (evt.dataTransfer) {
evt.dataTransfer.dropEffect = 'move';
}
evt.preventDefault();
}

2
Sortable.min.js vendored

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