PDA

View Full Version : Bug in clearSelections() of Ext.selection.Model in ext4



gctram
17 May 2011, 10:53 PM
Ext 4 code : 'me.selected.clear()' does not clear existing grid selections

clearSelections: function() {

var me = this;
me.selected.clear();
me.lastSelected = null;
me.setLastFocused(null);
}

Possible fix which works for me :

clearSelections: function() {

var me = this;
s = me.selected;
this.deselectAll();
s.clear();
me.lastSelected = null;
me.setLastFocused(null);
},