Overriding click handler

30 views
Skip to first unread message

chris...@gmail.com

unread,
Mar 9, 2015, 5:39:22 AM3/9/15
to knock...@googlegroups.com
I'm trying to get this script to work originally posted on stackoverflow.com 3 years ago. It allows you to override the click binding and insert your own code. The jsfiddle in the post works great for version 2.0.0, but not for version 3.3.0. Does anyone know what may have changed since version 2 that would prevent it from working? thanks.

chris...@gmail.com

unread,
Mar 9, 2015, 5:44:25 AM3/9/15
to knock...@googlegroups.com

Michael Best

unread,
Mar 9, 2015, 6:35:20 PM3/9/15
to knock...@googlegroups.com
You need to also pass the bindingContext parameter to the click init function. Here's a working fiddle: http://jsfiddle.net/PksAn/63/

-- Michael

chris...@gmail.com

unread,
Mar 10, 2015, 3:04:54 PM3/10/15
to knock...@googlegroups.com
Ok that works. So the only change was to add the bindingContext. I'm not using it in my code so why do I need it. Is it used internally?


On Monday, March 9, 2015 at 5:39:22 AM UTC-4, chris...@gmail.com wrote:

Michael Best

unread,
Mar 10, 2015, 6:47:14 PM3/10/15
to knock...@googlegroups.com
Yes, it's used internally.
Reply all
Reply to author
Forward
0 new messages