How do I get the dirty records from an ExtJS data store?
问题 Other than iterating over the records in the store and checking the dirty flag, is there a cleaner way? EDIT I am using ExtJS4, btw. Here is a snippet of the data returned. Notice there is a dirty: true with the modified object set (which is actually the OLD data and the data object contains the NEW data) data: Ext.Class.Class.newClass items: Array[3] 0: Ext.Class.Class.newClass data: Object incidentCount: 14 incidentKey: "5466BD05-E4DD-4C1F-9F73-61ABAC6D3753" dirty: true id: "Ext.data.Store