Browse Source

Throw error if call in node

pull/730/head
Onoshko Dan 9 years ago
parent
commit
ef4314bfa7
  1. 6
      Sortable.js

6
Sortable.js

@ -24,6 +24,12 @@
})(function () {
"use strict";
if (typeof window == "undefined" || typeof window.document == "undefined") {
return function() {
throw new Error( "Sortable.js requires a window with a document" );
}
}
var dragEl,
parentEl,
ghostEl,

Loading…
Cancel
Save