title: popup not displaying content
body: <p>I have added a Jquery pop-up in my code. When an edit button is clicked the popup will be opened with data which is kept inside an array 'editAccount'. It works on the first load, but after a few use, the data is not shown in the popup. </p>
  
  <p><strong>INSIDE JS FILE</strong></p>
  
  <pre><code>/** View model in JS*/
  function ClientViewModel() {
      var self = this;
      self.editAccount = ko.observableArray([]);
      .
      .
      .
    }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>/** Method in HTML*/
   var clientViewModel = new ClientViewModel();
   clientViewModel.editAccount = function (item) {
              editSecItem = item;
              //console.log(item.ioru())
              var element = $('#accountDet')[0];
              ko.cleanNode(element);
              ko.applyBindings(item, element);
              dialog.dialog("open");
  
          } .bind(clientViewModel);
  </code></pre>
  
  <p><strong>POPUP</strong></p>
  
  <pre><code>    ko.applyBindings(clientViewModel, document.getElementById("clientDef"));
          dialog = $("#dialog-form").dialog({
              autoOpen: false,
              height: 390,
              width: 450,
              modal: true,
              close: function () {
                  if (editSecItem.accountNumber() == "") {
                      clientViewModel.removeAccount(editSecItem);
                  }
              }
          });
  </code></pre>
  
  <p><strong>POPUP HTML</strong>   </p>
  
  <pre><code>&lt;div style="display: none"&gt;
      &lt;div id="dialog-form" title="Account"&gt;
          &lt;table id="accountEdit" cellpadding="3" cellspacing="1"&gt;
              &lt;tbody&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                           Account Number
                      &lt;/td&gt;
                      &lt;td&gt;
                          &lt;input type="text" data-bind="value:accountNumber"&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
                   &lt;tfoot&gt;
                  &lt;tr&gt;
                      &lt;td align="center" colspan="2"&gt;
                          &lt;span class="btn btn-block btn-primary btn-icon glyphicons ok" onclick="dialog.dialog('close');"&gt;
                              &lt;i&gt;&lt;/i&gt;Done&lt;/span&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tfoot&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>