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

@ -23,6 +23,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,

Loading…
Cancel
Save