Created
March 10, 2014 16:49
-
-
Save rguerrettaz/9468884 to your computer and use it in GitHub Desktop.
Use newest version of jQuery in Crowdflower job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['jquery-noconflict', 'bootstrap-modal', 'bootstrap-tooltip', 'bootstrap-popover', 'bootstrap-tab', 'jquery-cookie'], function (_, modal, jQuery) { | |
//Ensure MooTools is where it must be | |
Window.implement('$', function (el, nc) { | |
return document.id(el, nc, this.document); | |
}); | |
// set jQuery object | |
var jQuery1_7 = window.jQuery; | |
// Load latest version of jquery | |
jQuery1_7.getScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js", function(){ | |
var jQuery1_11 = $.noConflict(true); | |
console.log(jQuery1_11.fn.jquery) // test the version of jquery with this, should return 1.11.0 | |
// Add all your logic for the job below | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment