Last active
December 21, 2015 17:09
-
-
Save jbspeakr/6338718 to your computer and use it in GitHub Desktop.
YUI Howto: Use make internal functions available out of a modules scope.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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