Skip to content

Instantly share code, notes, and snippets.

@davglass
Created January 30, 2009 16:22
Show Gist options
  • Save davglass/55125 to your computer and use it in GitHub Desktop.
Save davglass/55125 to your computer and use it in GitHub Desktop.
//Module
YUI.add('Config', function(Y) {
var Config = {
data: {},
foo: function() {
}
}
Y.Config = Config;
}, '0.1',
{ skinnable: false });
//Use
YUI().use('Config', function(Y) {
var C = Y.Config;
var lib1 = new Y.Lib1(c.data);
var lib2 = new Y.Lib2(c.data);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment