File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 78
78
}
79
79
}
80
80
81
+ var mostRecentData ;
82
+
81
83
function dataWatchFunction ( newData ) {
82
84
// gridUtil.logDebug('dataWatch fired');
83
85
var promises = [ ] ;
90
92
}
91
93
}
92
94
95
+ mostRecentData = newData ;
96
+
93
97
if ( newData ) {
94
98
// columns length is greater than the number of row header columns, which don't count because they're created automatically
95
99
var hasColumns = self . grid . columns . length > ( self . grid . rowHeaderColumns ? self . grid . rowHeaderColumns . length : 0 ) ;
118
122
}
119
123
120
124
$q . all ( promises ) . then ( function ( ) {
121
- self . grid . modifyRows ( newData )
125
+ // use most recent data, rather than the potentially outdated data passed into watcher handler
126
+ self . grid . modifyRows ( mostRecentData )
122
127
. then ( function ( ) {
123
128
// if (self.viewport) {
124
129
self . grid . redrawInPlace ( true ) ;
You can’t perform that action at this time.
0 commit comments