Hello guys, I stumbled across this issue on Friday and I want to know what you think.
Here's a piece of markup I used:
<th><span data-bind="click: myVmMethod('propertyName')">Some title<span</th>
myVmMethod is a function on my view model class that accepts one parameter. I was stunned when it turned out that the method code executed after page is loaded, not when I clicked on it. and since this is somewhat performance aggressive method, the browser hung happily.
I have found a workaround that uses an anonymous function instead of straight call to the method, but I'm curious - did I misunderstood something or is it really a Knockout bug? Didn't find it on Github though