I have this function:
function make(place)
{
place.innerHTML = \"somthing\"
}
I used to do this with plain JavaScript and html:
I know this is an old question, but here is my contribution. Instead of all these tricks, you can just simply wrap a function inside another function. Like I have done here:
Click me once
Click me twice
var VM = function(){
this.f = function(param){
console.log(param);
}
}
ko.applyBindings(new VM());
And here is the fiddle