The fifth parameter to binding handlers is bindingContext, which you're missing.
-- Michael
--
You received this message because you are subscribed to a topic in the Google Groups "KnockoutJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/knockoutjs/NEl4Rfv_66A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
return ko.bindingHandlers.event.init(element, newValueAccessor, allBindingsAccessor, viewModel, bindingContext); return ko.bindingHandlers.event.init.call(this, element, newValueAccessor, allBindingsAccessor, viewModel, bindingContext);ko.bindingHandlers.fastClick = { 'init': function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { var handler = function(event) { var $data = bindingContext.$data; valueAccessor().call($data, $data, event); } new FastButton(element, handler); }};