Browse Source

fix errors reported by jshint

pull/903/head
anerth 8 years ago
parent
commit
71ea5b82e4
  1. 10
      Sortable.js
  2. 2
      Sortable.min.js

10
Sortable.js

@ -25,9 +25,9 @@
"use strict"; "use strict";
if (typeof window == "undefined" || typeof window.document == "undefined") { if (typeof window == "undefined" || typeof window.document == "undefined") {
return function() { return function () {
throw new Error( "Sortable.js requires a window with a document" ); throw new Error("Sortable.js requires a window with a document");
} };
} }
var dragEl, var dragEl,
@ -803,7 +803,7 @@
} }
if (Sortable.active) { if (Sortable.active) {
if (newIndex == null || newIndex === -1) { if (newIndex === null || newIndex === -1) {
newIndex = oldIndex; newIndex = oldIndex;
} }
@ -819,7 +819,7 @@
this._nulling(); this._nulling();
}, },
_nulling: function() { _nulling: function () {
if (Sortable.active === this) { if (Sortable.active === this) {
rootEl = rootEl =
dragEl = dragEl =

2
Sortable.min.js vendored

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