PDA

View Full Version : [FIXED] Model 'modified' undefined if no changes exist



mankz
7 Apr 2014, 3:25 AM
In 4.x it's always defined as an empty object, in accordance with the docs. If this is intended, it's a breaking change and needs documentation.


new (Ext.define('M', { extend : Ext.data.Model, fields : ['foo'] }))().modified

greg.barry
7 Apr 2014, 5:21 PM
Great point.

In an effort to minimize the data package's footprint, these sorts of empty objects have been removed.

I have added a note about the modified property to the Ext JS 5 Update Guide.

Thanks!
Greg