jashkenas/coffee-script — pull request #2260 by josher19 (2012-04-13 04:34:13+00:00)
Title: this != window in "Try CoffeeScript"

`this` should be `window` rather than clicked "Run" button in "Try CoffeeScript" interpreter.

On current coffeescript.org website, click "TRY COFFEESCRIPT" and enter:

alert [this == window, this, window]
console.assert this == window, "this is ", this, "instead of of window", window

and then click the "Run" button.

false,[object HTMLDivElement],[object DOMWindow]

**Assertion failed**: this is <div class=​"minibutton dark run" title=​"Ctrl-Enter">​Run​</div>
instead of of window DOMWindow

Confusing to people coming to the site for the first time or trying to check values in the Web Console.

jQuery bound `this` to the html element clicked. Now unbound so `this == window`.