Skip to content

Instantly share code, notes, and snippets.

@tkawa
Created November 26, 2010 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkawa/716388 to your computer and use it in GitHub Desktop.
Save tkawa/716388 to your computer and use it in GitHub Desktop.
pseudo-code in Twitter
var twttr = {
klass: function (f) {
var g = function () {
f.apply(this, arguments);
};
return g;
}
};
twttr.klass(function () {
this.prop = "important value";
}).methods({ ... });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment