Browse Source

Merge pull request #903 from massanho/fix-jshint

fix errors reported by jshint
massanho-setTimeout
Lebedev Konstantin 9 years ago committed by GitHub
parent
commit
c85767e52f
  1. 9
      Sortable.js
  2. 2
      Sortable.min.js

9
Sortable.js

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

2
Sortable.min.js vendored

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