documentcloud/backbone — pull request #2184 by byroot (2013-01-23 16:15:03+00:00)
Title: Throw an error if the callback parameter is missing in Events.prototype.on and Events.prototype.once

Rationale:

- As stated by @jashkenas in #1008 binding a event without passing a callback is "an error by definition".

- "Errors should never pass silently".

- If I reference a method that do not exists in a view `events` hash,
it will throw and error when I instanciate the view, and I'll fix that issue in a minute.

- Before #1008 a typo like `.on('change', this.rander, this)` would have thrown an error quickly.
Now since 0.9.9 these typos became a noop, so the only way to spot this kind of issues is to wonder
why your callback is never called.

I know this is a backward incompatible change, but it will only break dead code writen for 0.9.9 or 0.9.10.