Browse Source

#558: + Error initializing

pull/564/head
RubaXa 9 years ago
parent
commit
0043e4796e
  1. 4
      Sortable.js

4
Sortable.js

@ -172,6 +172,10 @@
* @param {Object} [options] * @param {Object} [options]
*/ */
function Sortable(el, options) { function Sortable(el, options) {
if (!(el && el.nodeType && el.nodeType === 1)) {
throw 'Sortable: `el` must be HTMLElement, and not ' + {}.toString.call(el);
}
this.el = el; // root element this.el = el; // root element
this.options = options = _extend({}, options); this.options = options = _extend({}, options);

Loading…
Cancel
Save