Skip to content

Instantly share code, notes, and snippets.

@tivac
Created April 7, 2010 06:18
Show Gist options
  • Save tivac/358594 to your computer and use it in GitHub Desktop.
Save tivac/358594 to your computer and use it in GitHub Desktop.
YUI({
groups : {
googa : {
combine : false,
base : "/blog/wp-content/themes/aooga/js/lib/",
modules : {
'chiclet' : {
fullpath : "chiclet-lib.js",
requires : [ "widget", "anim-base", "anim-easing" ]
},
'slider-plugin' : {
fullpath : "slider-lib.js",
requires : ["plugin", "node", "anim-base", "anim-easing"]
},
'gallery-lightbox' : {
fullpath : "lightbox-lib.js",
requires : ["base", "node", "anim"]
}
}
}
}
}).use("node", "event-base", "slider-plugin", function(Y) {
// this doesn't request /blog/wp-content/themes/arenanet/js/lib/slider-lib.js, rather it requests
// ./slider-lib.js which 404s and then all sorts of errors appear. What is wrong here?
Y.one("#example").plug(Y.Plugin.Slider);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment