@@ -73,8 +73,8 @@ return $.widget( "ui.controlgroup", {
7373
7474 // We assume everything is in the middle to start because we can't determine
7575 // first / last elements until all enhancments are done.
76- if ( that [ "_" + widget + "_options " ] ) {
77- options = that [ "_" + widget + "_options " ] ( "middle" ) ;
76+ if ( that [ "_" + widget + "Options " ] ) {
77+ options = that [ "_" + widget + "Options " ] ( "middle" ) ;
7878 }
7979
8080 // Make sure the widget actually exists and has a selector set
@@ -90,7 +90,7 @@ return $.widget( "ui.controlgroup", {
9090 // and telling us what type of widget this is
9191 widgetElement = element [ widget ] ( "widget" ) . data (
9292 "ui-controlgroup-data" ,
93- element . data ( "ui-" + widget . charAt ( 0 ) . toUpperCase ( ) + widget . slice ( 1 ) )
93+ element . data ( "ui-" + widget . charAt ( 0 ) . toUpperCase ( ) + widget . slice ( 1 ) )
9494 ) ;
9595
9696 childWidgets . push ( widgetElement [ 0 ] ) ;
@@ -113,14 +113,14 @@ return $.widget( "ui.controlgroup", {
113113 this . childWidgets . each ( function ( ) {
114114 var element = $ ( this ) ,
115115 data = element . data ( "ui-controlgroup-data" ) ;
116- if ( data && data [ method ] ) {
116+ if ( data && data [ method ] ) {
117117 data [ method ] ( ) ;
118118 }
119119 } ) ;
120120 } ,
121121
122122 _updateCornerClass : function ( element , position ) {
123- var direction = this . options . direction === "vertical"
123+ var direction = this . options . direction === "vertical" ,
124124 remove = "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right" ,
125125 add = this . _buildSimpleOptions ( position , direction , "label" ) . classes . label ;
126126
@@ -141,7 +141,7 @@ return $.widget( "ui.controlgroup", {
141141 return result ;
142142 } ,
143143
144- _spinner_options : function ( position , direction ) {
144+ _spinnerOptions : function ( position , direction ) {
145145 var options = this . _buildSimpleOptions ( position , direction , "ui-spinner" ) ;
146146
147147 options . classes [ "ui-spinner-up" ] = "" ;
@@ -150,15 +150,15 @@ return $.widget( "ui.controlgroup", {
150150 return options ;
151151 } ,
152152
153- _button_options : function ( position , direction ) {
153+ _buttonOptions : function ( position , direction ) {
154154 return this . _buildSimpleOptions ( position , direction , "ui-button" ) ;
155155 } ,
156156
157- _checkboxradio_options : function ( position , direction ) {
157+ _checkboxradioOptions : function ( position , direction ) {
158158 return this . _buildSimpleOptions ( position , direction , "ui-checkboxradio-label" ) ;
159159 } ,
160160
161- _selectmenu_options : function ( position , direction ) {
161+ _selectmenuOptions : function ( position , direction ) {
162162 return {
163163 width : direction ? "auto" : false ,
164164 classes : {
@@ -222,9 +222,9 @@ return $.widget( "ui.controlgroup", {
222222 $ . each ( [ "first" , "last" ] , function ( index , value ) {
223223 var instance = children [ value ] ( ) . data ( "ui-controlgroup-data" ) ;
224224
225- if ( instance && that [ "_" + instance . widgetName + "_options " ] ) {
225+ if ( instance && that [ "_" + instance . widgetName + "Options " ] ) {
226226 instance . element [ instance . widgetName ] (
227- that [ "_" + instance . widgetName + "_options " ] (
227+ that [ "_" + instance . widgetName + "Options " ] (
228228 value ,
229229 that . options . direction === "vertical"
230230 )
0 commit comments