r2830 - - change _readClassNameOpts params order as now baseClass may be autodetected from this.w...
Author: malk0.phpgtk
Date: Mon Jun 22 16:09:47 2009
New Revision: 2830
Modified:
branches/labs/button/ui.classnameoptions.js
Log:
- change _readClassNameOpts params order as now baseClass may be
autodetected from this.widgetBaseClass
Modified: branches/labs/button/ui.classnameoptions.js
==============================================================================
--- branches/labs/button/ui.classnameoptions.js (original)
+++ branches/labs/button/ui.classnameoptions.js Mon Jun 22 16:09:47 2009
@@ -17,7 +17,9 @@
* optionsList an associtive list of optionNames with their possible
values separated by a pipe '|'
* if an empty value is set at first position it'll be considered
optional.
*/
- _readClassNameOpts: function(baseClass,optionsList,elmt){
+ _readClassNameOpts: function(optionsList,baseClass,elmt){
+ if( ! baseClass)
+ baseClass = this.widgetBaseClass;
elmt=(!elmt)?this.element:$(elmt);
//prepare expression
var exp = '(?:^|\\s)'+baseClass+'(?=-)';