Created
January 5, 2010 09:48
-
-
Save jakearchibald/269282 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
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