Don't use "self" as a Javascript variable
You might sometimes use self
to capture the context of this
before it is destroyed by some function.
Unfortunately
self
is also an alias for window
Show archive.org snapshot
, the global top-level object. Save your future self some headaches and use another name like me
instead (Coffeescript chose to use
_this
Show archive.org snapshot
).