Skip to content

Commit

Permalink
Fixed dependency check. Fixes #63
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-krogh committed May 3, 2018
1 parent 33253a1 commit 09dc1fa
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 50 deletions.
7 changes: 3 additions & 4 deletions js/jquery.sudoSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2901,10 +2901,9 @@
function minJQueryVersion(minVersion) {
var version = $.fn.jquery.split(".");
var length = version.length
for (var a = 0; a < length; a++) {
if (minVersion[a] && +version[a] < +minVersion[a]) {
return FALSE;
}
for (var i = 0; i < length; i++) {
if (+version[i] < +minVersion[i]) { return FALSE; }
if (+version[i] > +minVersion[i]) { return TRUE; }
}
return TRUE;
}
Expand Down
Loading

0 comments on commit 09dc1fa

Please sign in to comment.