Ticket #6868: dojox.grid._data.model_20080602.patch

File dojox.grid._data.model_20080602.patch, 0.7 kB (added by jaredj, 7 months ago)
  • dojox/grid/_data/model.js

     
    602602                var rowId = null; 
    603603                //Handle identity and nonidentity capable stores. 
    604604                if(this._canIdentify && !isNotItem){ 
    605                         rowId = this._rowIdentities[this.store.getIdentity(item)].rowId; 
     605                        //Make sure the row in question is actually in our data view.  If it isn't, 
     606                        //should just return null. 
     607                        var _rowId = this._rowIdentities[this.store.getIdentity(item)]; 
     608                        if(_rowId){ 
     609                                rowId = _rowId.rowId; 
     610                        } 
    606611                }else{ 
    607612                        //Not efficient, but without identity support,  
    608613                        //not a better way to do it.  Basically, do our best to locate it