Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save lsmith/214554 to your computer and use it in GitHub Desktop.

Select an option

Save lsmith/214554 to your computer and use it in GitHub Desktop.
YUI.add('prop.mod-a', function (Y) {
/* Your module code here */
// shortcut to ensure Y.config.modules object is in place
Y.namespace('config.modules')['yui2-utilities'] = {
fullpath: 'http://yui.yahooapis.com/2.8.0r4/build/utilities/utilities.js'
};
Y.use('yui2-utilities', function (Y) {
Y.fire('myapp:ready');
});
},'0.0.1', { requires: ['event-custom-base'] });
YUI().use('prop.mod-a', function (Y) {
Y.on('myapp:ready', function () {
/* implementation code */
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment