Roo/grid/RowSelectionModel.js
authoredward <edward@roojs.com>
Tue, 5 Jan 2016 06:25:07 +0000 (14:25 +0800)
committeredward <edward@roojs.com>
Tue, 5 Jan 2016 06:25:07 +0000 (14:25 +0800)
Roo/grid/RowSelectionModel.js

index 8ab926f..1decda3 100644 (file)
@@ -124,13 +124,11 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel,  {
 
     // private
     onRefresh : function(){
-        Roo.log('calling on refresh!!!!!!!!!!!!!!!!!!!!!!!!');
         var ds = this.grid.dataSource, i, v = this.grid.view;
         var s = this.selections;
         s.each(function(r){
             if((i = ds.indexOfId(r.id)) != -1){
                 v.onRowSelect(i);
-                s.add(ds.getAt(i)); // updating the selection relate data
             }else{
                 s.remove(r);
             }
@@ -377,9 +375,6 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel,  {
                 this.clearSelections();
             }
             var r = this.grid.dataSource.getAt(index);
-            Roo.log('running select row!!!!!!!!!!!!!!!!!!!!!!!!');
-            Roo.log(r);
-            
             this.selections.add(r);
             this.last = this.lastActive = index;
             if(!preventViewNotify){