Closed brigand closed 9 years ago
<button data-bind="click: handle"></button>
this.handle = function(){ ko.track({foo: "bar"}) // Error };
The source of the error is this line which does var ko = this, however knockout click bindings change the meaning of this.
var ko = this
this
Fixed (thanks)
The source of the error is this line which does
var ko = this
, however knockout click bindings change the meaning ofthis
.