title: KnockoutJS 2.3: 'custom binding' + 'ko.applyBindings to partial view' throws error
body: <p>I've got some code that uses knockout.js, a custom binding and a calls applyBindings() to a partial view. <a href="http://jsfiddle.net/ZiglioNZ/tzD4T/457/" rel="nofollow noreferrer">jsfiddle with ko 2.2.1</a> </p>
  
  <pre><code>    var handle = slider.slider().find(".ui-slider-handle").first();
      $(handle).attr("data-bind", "tooltip: viewModel.value");
      ko.applyBindings(viewModel.value, $(handle)[0]);
  </code></pre>
  
  <p>Now, with ko version 2.3, I get the error "You cannot apply bindings multiple times to the same element." <a href="http://jsfiddle.net/ZiglioNZ/tzD4T/458/" rel="nofollow noreferrer">jsfiddle with ko 2.3</a></p>
  
  <p>I've probably always had this problem but previous versions of knockout wouldn't throw an exception.
  I've added a call to cleanNode() just before the partial applyBindings but <a href="http://jsfiddle.net/ZiglioNZ/tzD4T/459/" rel="nofollow noreferrer">that doesn't help</a>. </p>
  
  <pre><code>    var handle = slider.slider().find(".ui-slider-handle").first();
      $(handle).attr("data-bind", "tooltip: viewModel.value");
      ko.cleanNode($(handle)[0]);
      ko.applyBindings(viewModel.value, $(handle)[0]);
  </code></pre>
  
  <p>Interestingly, binding works with the dynamic tooltip but not with a static field, so I think the error is thrown after applying the partial view binding.
  I've tried to follow the chain of calls that occurs after the global ko.applyBindings() but it's deeply nested, and got lost.
  All I know is that the custom binding is initialized then, after ko.applyBindings(). I don't know whether there's a way to add custom handlers later on, perhaps that could help. 
  I hope that's clear enough.</p>
  
  <p><a href="https://stackoverflow.com/questions/7342814/knockoutjs-ko-applybindings-to-partial-view/9370953#9370953">Linked question</a>.</p>