jQuery 1.10 compatibility
authorveltr
Tue, 01 Oct 2013 16:57:57 +0200
changeset 1016 e1752b696a07
parent 1015 63c5e5b16770
child 1017 b6e39f6fd24f
jQuery 1.10 compatibility
src/js/init.js
--- a/src/js/init.js	Tue Oct 01 16:38:11 2013 +0200
+++ b/src/js/init.js	Tue Oct 01 16:57:57 2013 +0200
@@ -2,12 +2,16 @@
 
 if (typeof window.IriSP === "undefined") {
     window.IriSP = {
-        VERSION: "0.3.1"
+        VERSION: "0.3.2"
     };
 }
 
-if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) {
-    IriSP.jQuery = window.jQuery;
+if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined") {
+    var jvp = window.jQuery().jquery.split("."),
+        jv = 100 * parseInt(jvp[0]) + parseInt(jvp[1]);
+    if (jv > 170) {
+        IriSP.jQuery = window.jQuery;
+    }
 }
 
 if (typeof IriSP._ === "undefined" && typeof window._ !== "undefined" && parseFloat(window._.VERSION) >= 1.4) {