Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created January 5, 2010 09:48
Show Gist options
  • Save jakearchibald/269282 to your computer and use it in GitHub Desktop.
Save jakearchibald/269282 to your computer and use it in GitHub Desktop.
var myApplication = (function(){
// this will hold our instance of glow
var glow;
gloader.load(['glow', '1', 'glow.dom', 'glow.anim'], {
async: true,
onLoad: function(g) {
glow = g;
glowLoaded();
g.ready(domReady);
}
});
function glowLoaded() {
// this will be called when glow has loaded
}
function domReady() {
// this will be called when glow has loaded & the dom is ready
}
// put the other private properties & methods of your application here
// return the public properties & methods of your application as an object
return {
greeting: 'Hello!'
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment