I've been doing a lot of knockoutjs lately, and I came across a strange occurence.
As you can see in this fiddle http://jsfiddle.net/hqXjv/ when you set up a binding to click: testMethod
then the action fires when the button is clicked.
As you can see in this fiddle http://jsfiddle.net/kxTzM/ when you setup the binding to click: testMethod('hi')
the action fires both when the button is clicked and on page load (I'm guessing on applyBindings)
Having a parameter isn't necessary to reproduce the problem, if you change the binding to click: testMethod()
in the first fiddle, you see that it is triggered on page load.
While, yes, I could add another attribute to the element and attempt to use that as a parameter, my question is, is there a way to pass parameters to knockoutjs bindings without triggering them onload. If this is a bug, so be it, however I just want to know a way to avoid it.