Skip to content

Instantly share code, notes, and snippets.

@jbspeakr
Last active December 21, 2015 17:09
Show Gist options
  • Save jbspeakr/6338718 to your computer and use it in GitHub Desktop.
Save jbspeakr/6338718 to your computer and use it in GitHub Desktop.
YUI Howto: Use make internal functions available out of a modules scope.
YUI.add('module-name', function (Y) {
'use strict';
var init = function(){
// Do Something...
};
Y.ModuleName = {
init: init
};
}, '0.1', {requires: ['node', 'event']});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment