/*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.1.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
this.store.on('load', this.calcRowsPerPage, this);\r
Ext.ux.form.SelectBox.superclass.onRender.apply(this, arguments);\r
if( this.mode == 'local' ) {\r
+ this.initList();\r
this.calcRowsPerPage();\r
}\r
},\r
}\r
},\r
\r
- render : function(ct) {\r
- Ext.ux.form.SelectBox.superclass.render.apply(this, arguments);\r
- if( Ext.isSafari ) {\r
+ afterRender : function() {\r
+ Ext.ux.form.SelectBox.superclass.afterRender.apply(this, arguments);\r
+ if(Ext.isWebKit) {\r
this.el.swallowEvent('mousedown', true);\r
}\r
this.el.unselectable();\r
},\r
\r
focusAndSelect : function(record) {\r
- 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
},\r
\r
calcRowsPerPage : function() {\r