title: BackboneJS issue with posting/saving model
body: <p>I have a modal window which has date displayed, which on click opens an inline date picker, where the user can select a new date</p>
  
  <pre><code>$(document).on("click",".editableDateTxt", function () {
      var currElmModelId = $(this).attr('data-model-id');
      var currElmModelAttr = $(this).attr('data-model-attr');
      var input = $('&lt;input /&gt;', {'type': 'text', 'data-model-id': currElmModelId, 'data-model-attr': currElmModelAttr, 'class':'datePicker', 'value': $(this).html()});
      var parent = $(this).parent();
      parent.append(input);
      $(this).remove();
      input
      .datepicker({
          onSelect: function(date) {
              var divEle = $('&lt;div /&gt;', {'class': 'editableDateTxt','data-model-attr':currElmModelAttr,'data-model-id':currElmModelId,'html':date});
              parent.append(divEle);
              self.model.get("myCollection").get(currElmModelId).set(currElmModelAttr, date);
              $(this).remove();
          }
      }).focus();
  });
  </code></pre>
  
  <p>On select of any date, the picker is closed and the selected date is set in my model attribute.</p>
  
  <p><strong>Now when I save the model, it saves it correctly first time (i.e. passes the selected date in the model)....But when I open the modal again, select a new date and save again, it saves the earlier/old date</strong>...even though the statement for</p>
  
  <pre><code>self.model.get("myCollection").get(currElmModelId).set(currElmModelAttr, date);
  </code></pre>
  
  <p>is executed and the new date gets set in the model</p>
  
  <pre><code>self.model.save({},{
      success: function() {
          self.removeModal();
      }
  });
  </code></pre>
  
  <p>Am I doing something wrong ?</p>