PDA

View Full Version : [DEFER] [4.0.7] double 'datachanged' events fired by Store



mankz
23 Nov 2011, 3:38 AM
In this case:



var store = new Ext.data.JsonStore({
sorters:{
property: 'start',
},
fields : ['start']
});

var nbrFired = 0;
store.on('datachanged', function(){nbrFired++});
store.suspendEvents(true);
store.loadData([{ start : 1}]);
store.resumeEvents();

if (nbrFired > 1) alert('Foookkk');

mitchellsimoens
23 Nov 2011, 12:49 PM
Nige and Tommy are working on improving adding records to a store when there is a sort/filter applied so I'm gonna defer this one until the next release to see if it gets fixed with their changes.

btw, I spy with my little eye an extra comma in your test case >:)