Created
November 26, 2010 07:36
-
-
Save tkawa/716388 to your computer and use it in GitHub Desktop.
pseudo-code in Twitter
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
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