-
-
Save triptych/4963813 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.Env is not populated until you build a YUI base object once. You can cache a reference to it here, if you'd like, | |
| // but you probably don't want to require anything. You certainly don't want to require anything from the Gallery. | |
| YUI() | |
| YUI.Env[YUI.version].groups.gallery.base = "http://path.to.my.server/lib/yui-gallery/build"; | |
| YUI.Env[YUI.version].groups.gallery.comboBase = "http://path.to.my.server/combo? | |
| YUI.Env[YUI.version].groups.gallery.root = "lib/yui-gallery/build"; | |
| // This is how you *should* do this, ignore everything above: | |
| YUI({groups: { gallery: { base: "http://path.to.my.server/lib/yui-gallery/build", comboBase: "http://path.to.my.server/combo?", root: "lib/yui-gallery/build" } } }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment