Skip to content

Instantly share code, notes, and snippets.

@foxxtrot
Created February 20, 2010 17:54
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 foxxtrot/309806 to your computer and use it in GitHub Desktop.
Save foxxtrot/309806 to your computer and use it in GitHub Desktop.
YUI.namespace('myNamepsace');
YUI().use("node", "event", function(Y) {
YUI.myNamespace.someFunction = function() {
...
};
});
YUI.myNamespace.someFunction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment