File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -248,15 +248,16 @@ $.widget("ui.selectmenu", {
248
248
this . element
249
249
. find ( 'option' )
250
250
. each ( function ( ) {
251
+ var opt = $ ( this ) ;
251
252
selectOptionData . push ( {
252
- value : $ ( this ) . attr ( 'value' ) ,
253
+ value : opt . attr ( 'value' ) ,
253
254
text : self . _formatText ( $ ( this ) . text ( ) ) ,
254
- selected : $ ( this ) . attr ( 'selected' ) ,
255
- disabled : $ ( this ) . attr ( 'disabled' ) ,
256
- classes : $ ( this ) . attr ( 'class' ) ,
257
- typeahead : $ ( this ) . attr ( 'typeahead' ) ,
258
- parentOptGroup : $ ( this ) . parent ( 'optgroup' ) ,
259
- bgImage : o . bgImage . call ( $ ( this ) )
255
+ selected : opt . attr ( 'selected' ) ,
256
+ disabled : opt . attr ( 'disabled' ) ,
257
+ classes : opt . attr ( 'class' ) ,
258
+ typeahead : opt . attr ( 'typeahead' ) ,
259
+ parentOptGroup : opt . parent ( 'optgroup' ) ,
260
+ bgImage : o . bgImage . call ( opt )
260
261
} ) ;
261
262
} ) ;
262
263
You can’t perform that action at this time.
0 commit comments