Browse Source

fix jquery version check, again. (should accept jquery 2, although TimelineJS has not been tested with jquery 2) cf. #551

pull/693/head
Joe Germuska 11 years ago
parent
commit
50df972940
  1. 8
      source/js/Core/Embed/Embed.js

8
source/js/Core/Embed/Embed.js

@ -238,10 +238,10 @@ function createStoryJS(c, src) {
var jquery_version_required_array = jquery_version_required.split("."); var jquery_version_required_array = jquery_version_required.split(".");
ready.jquery = true; ready.jquery = true;
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
if (parseFloat(jquery_version_array[i]) < parseFloat(jquery_version_required_array[i])) { var have = jquery_version_array[i], need = parseFloat(jquery_version_required_array[i]);
//console.log("NOT THE REQUIRED VERSION OF JQUERY, LOADING THE REQUIRED VERSION"); if (have != need) {
//console.log("YOU HAVE VERSION " + jQuery.fn.jquery + ", JQUERY VERSION " + jquery_version_required + " OR ABOVE NEEDED"); ready.jquery = have > need;
ready.jquery = false; break;
} }
} }
} }

Loading…
Cancel
Save