Created
October 19, 2010 18:33
-
-
Save christocracy/634761 to your computer and use it in GitHub Desktop.
foo.js
This file contains 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
/** | |
* @class Foo | |
* @singleton | |
*/ | |
Foo = (function() { | |
return { | |
/** | |
* getFoo | |
*/ | |
getFoo: function() { | |
console.log('foo'); | |
} | |
} | |
})(); |
Testing posterous code-formatting / gist support
Had a moment of bored silly there... installing Android SDK with cmd: mkdir android ; cd android ; repo init -u git://android.git.kernel.org/platform/manifest.git ; repo sync ; make
takes a few minutes to run that sucker... :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is amazing. I cannot see Foo in my global namespace though, so my code is borked. Can you help me?