Created
March 2, 2012 20:07
-
-
Save brianjmiller/1960937 to your computer and use it in GitHub Desktop.
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().use( | |
"console", | |
"file1", | |
"file2", | |
function (Y) { | |
// I'm a callback that runs as soon as all dependencies are loaded | |
} | |
); | |
YUI.add( | |
"file1", | |
function (Y) { | |
// code goes here that runs when loader loads this module | |
} | |
); | |
YUI.add( | |
"file2", | |
function (Y) { | |
// code goes here that runs when loader loads this module | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment