ember.js - difference between emberjs model's _data and _attribute? -


i using model app.license has property called expires_at.

while editing license, in edit method of licensecontroller, setting it's expiry :

this.get('model').set('expires_at', '2014-12-31'); 

then doing this.get('model').save(); make put request server. in request, expires_at parameter send old value of model.

when printed model in console, showed me expires_at in both _attributes , _data. strange thing expires_at in _attributes updated one, , 1 in _data old 1 (which sent put request). other properties of license getting set , sent put parameters except expires_at. missing out on small important thing? on appreciated.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -