SteveSanderson/knockout — pull request #684 by rniemeyer (2012-10-31 02:44:05+00:00)
Title: Event binding init fails if Object prototype is extended

Inside the init function of the event binding handler the for loops over the event names in eventsToHandle, but it picks up extra functions from the object prototype and attempts to register as an event handler.

JQuery throws exception : Uncaught TypeError: [Method Code] has no method 'push'

jsFiddle to replicate : http://jsfiddle.net/slaneyrw/S6VaW/9/

Potential resolution: Need to check if the eventsTohandle "owns" the event name or if it comes from the prototype chain.

see discussion https://groups.google.com/forum/?fromgroups=#!topic/knockoutjs/ixlSf_qg1BE for more information