Created
June 23, 2013 10:44
-
-
Save mokkabonna/5844582 to your computer and use it in GitHub Desktop.
jquery amd
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
define(['../lib/jquery/jquery.js'], function() { | |
var jquery = $; //store original jquery before deleting it from the global namespace | |
$.noConflict(true); //delete $ and jQuery from the global namespace | |
return jquery; //return jquery to any module that requires it | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment