Changeset 13591
- Timestamp:
- 05/06/08 13:48:53 (7 months ago)
- Files:
-
- 1 modified
-
dojox/trunk/grid/_data/model.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/_data/model.js
r13518 r13591 586 586 // FIXME: where else do we need to keep this in sync? 587 587 //Handle stores that implement identity and try to handle those that do not. 588 if (this._canIdentify){588 if(this._canIdentify){ 589 589 this._rowIdentities[this.store.getIdentity(item)] = {rowId: offset+idx, item: item}; 590 590 }else{ … … 629 629 }, 630 630 _storeDatumDelete: function(item){ 631 if(dojo.indexOf(this._currentlyProcessing, item) != -1) 631 if(dojo.indexOf(this._currentlyProcessing, item) != -1){ 632 632 return; 633 } 633 634 // the store has deleted some item under us, need to remove that item from 634 635 // the view if possible. It may be the deleted item isn't even in the grid. … … 639 640 }, 640 641 _storeDatumNew: function(item){ 641 if(this._disableNew) 642 if(this._disableNew){ 642 643 return; 644 } 643 645 // the store has added some item under us, need to add it to the view. 644 646 this._insertItem(item, this.data.length); … … 657 659 } 658 660 var row = this._createRow(storeItem); 661 for(var i in this._rowIdentities){ //increment all the remaining row ids up one 662 var rowIdentity = this._rowIdentities[i]; 663 if(rowIdentity.rowId >= index){ 664 rowIdentity.rowId++; 665 } 666 } 659 667 this._setRowId(storeItem, 0, index); 660 668 dojox.grid._data.Dynamic.prototype.insert.apply(this, [row, index]); … … 738 746 this.pages = []; 739 747 this.bop = this.eop = -1; 740 this.setData( (keepStore?this.store:[]));748 this.setData(keepStore ? this.store : []); 741 749 }, 742 750 processError: function(error, request){