Created
November 19, 2009 10:28
-
-
Save jakearchibald/238682 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
// 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