From a3255433fd8c14ee57bec279d7eedc039e5b438a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 Apr 2016 17:56:14 +0800 Subject: [PATCH] Roo/grid/RowSelectionModel.js --- Roo/grid/RowSelectionModel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Roo/grid/RowSelectionModel.js b/Roo/grid/RowSelectionModel.js index 334f3f0186..ab87cce312 100644 --- a/Roo/grid/RowSelectionModel.js +++ b/Roo/grid/RowSelectionModel.js @@ -378,7 +378,9 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel, { * @param {Boolean} keepExisting (optional) True to keep existing selections */ selectRow : function(index, keepExisting, preventViewNotify){ - if(this.locked || (index < 0 || index >= this.grid.dataSource.getCount())) return; + if(this.locked || (index < 0 || index >= this.grid.dataSource.getCount())) { + return; + } if(this.fireEvent("beforerowselect", this, index, keepExisting) !== false){ if(!keepExisting || this.singleSelect){ this.clearSelections(); @@ -399,7 +401,9 @@ Roo.extend(Roo.grid.RowSelectionModel, Roo.grid.AbstractSelectionModel, { * @param {Number} row The index of the row to deselect */ deselectRow : function(index, preventViewNotify){ - if(this.locked) return; + if(this.locked) { + return; + } if(this.last == index){ this.last = false; } -- 2.39.2