I\'ve just upgraded to 2.3.0 and now I\'m getting the error
You cannot apply bindings multiple times to the same element.
that
If you are reusing an element over and over (A bootstrap modal dialog in my case), then calling ko.applyBindings(el) multiple times will cause this problem.
Instead just do it once like this:
if (!applied) {
ko.applyBindings(el);
applied = true;
}
Or like this:
var apply = function (viewModel, containerElement) {
ko.applyBindings(viewModel, containerElement);
apply = function() {}; // only allow this function to be called once.
}
PS: This might happen more often to you if you use the mapping plugin and convert your JSON data to observables.