Skip to content

Commit

Permalink
Enhanced jQuery version check
Browse files Browse the repository at this point in the history
  • Loading branch information
pisi committed Oct 16, 2013
1 parent 7792122 commit c0f0564
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jquery.reel.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@
// One vital requirement is the correct jQuery. Reel requires at least version 1.6.2
// and a make sure check is made at the very beginning.
//
if (!$ || +($().jquery.replace(/\./g, '')+'0').substr(0, 3) < 162) return;
if (!$) return;
var
version= $ && $().jquery.split(/\./)

if (!version || +(pad(version[0], 2, '0')+pad(version[1], 2, '0')+pad(version[2], 2, '0')) < 10602) return;
// ----------------
// Global Namespace
// ----------------
Expand Down

0 comments on commit c0f0564

Please sign in to comment.