Name: Anonymous 2012-09-21 12:24
Javascript is surprisingly quirky for such a hyped language. Even Python has less quirks.
Foo.prototype.method ?this always refers to the object the method was called on, i.e. that in that.test(). test() by itself uses the default (global) namespace.var self = this is so common that Vim's default JS syntax highlights self as a keyword.