Skip to content

Instantly share code, notes, and snippets.

@triptych
Forked from foxxtrot/gist:4962025
Created February 15, 2013 21:47
Show Gist options
  • Select an option

  • Save triptych/4963813 to your computer and use it in GitHub Desktop.

Select an option

Save triptych/4963813 to your computer and use it in GitHub Desktop.
// 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