Skip to content

Instantly share code, notes, and snippets.

@mokkabonna
Created June 23, 2013 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mokkabonna/5844582 to your computer and use it in GitHub Desktop.
Save mokkabonna/5844582 to your computer and use it in GitHub Desktop.
jquery amd
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