Skip to content

Instantly share code, notes, and snippets.

@brianium
Forked from anonymous/gist:2959953
Created June 20, 2012 13:45
Show Gist options
  • Save brianium/2959958 to your computer and use it in GitHub Desktop.
Save brianium/2959958 to your computer and use it in GitHub Desktop.
jQuery.noConflict();
(function() {
var $ = this.jQuery,
MyNamespace = {};
MyNamespace.SuperAwesomeFunction = function() {
//do awesome stuff
};
$(function() {
MyNamespace.SuperAwesomeFunction();
});
this.MyNamespace = MyNamespace;
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment