- var index = typeof record === 'number' ? record : this.store.indexOf(record);\r
- this.select(index, this.isExpanded());\r
- this.onSelect(this.store.getAt(record), index, this.isExpanded());\r
+ var index = Ext.isNumber(record) ? record : this.store.indexOf(record);\r
+ this.select(index, this.isExpanded());\r
+ this.onSelect(this.store.getAt(index), index, this.isExpanded());\r