Skip to content

Instantly share code, notes, and snippets.

@christocracy
Created October 19, 2010 18:33
Show Gist options
  • Save christocracy/634761 to your computer and use it in GitHub Desktop.
Save christocracy/634761 to your computer and use it in GitHub Desktop.
foo.js
/**
* @class Foo
* @singleton
*/
Foo = (function() {
return {
/**
* getFoo
*/
getFoo: function() {
console.log('foo');
}
}
})();
@resistorsoftware
Copy link

This is amazing. I cannot see Foo in my global namespace though, so my code is borked. Can you help me?

@christocracy
Copy link
Author

Testing posterous code-formatting / gist support

@resistorsoftware
Copy link

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... :)

@christocracy
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment