larrymyers/backbone-koans — pull request #4 by gregmalcolm (2012-05-21 01:48:49+00:00)
Title: Change 'bind' to 'on' and 'unbind' to 'off'

1) Backbone has moved over to using "on" and "off" instead of "bind" and "unbind" as of backgone 0.9.0, following jquery's example. Bind and Unbind is depreciated. I've updated the koans and todo.js to reflect this.

2) For the final commit in this set I've dropped a hint about how to bind color using the 3rd argument or bind. I wasn't sure if I'd have got it unless I'd messed with backbone previously. My hint is to initially set the 3rd argument to "this" object and added a comment to look at the existing binding very carefully. I'd have put this in a separate pull request, but I didn't want to leave you with a needless complex merge. (I changed 'bind' to 'on' in the same line of code).

I've tested with a full set of answers in the test_change_bind_to_on branch of my fork.