Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created November 19, 2009 10:28
Show Gist options
  • Save jakearchibald/238682 to your computer and use it in GitHub Desktop.
Save jakearchibald/238682 to your computer and use it in GitHub Desktop.
// out with the old:
(function(){
// this will hold our instance of glow
var glow;
gloader.load(['glow', '1', 'glow.dom', 'glow.anim', 'glow.widgets.Carousel'], {
async: true,
onLoad: function(g) {
glow = g;
g.ready(init);
}
});
function init() {
// this will be called when glow has loaded & the dom is ready
}
})();
// in with the new: (or something like this)
(function(){
// this will hold our instance of glow
var glow = new Glow(2).load('widgets').ready(init);
function init() {
// this will be called when glow has loaded & the dom is ready
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment