We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfec00b + d35924e commit ab6c744Copy full SHA for ab6c744
ui/jquery.ui.selectmenu.js
@@ -248,15 +248,16 @@ $.widget("ui.selectmenu", {
248
this.element
249
.find('option')
250
.each(function() {
251
+ var opt = $(this);
252
selectOptionData.push({
- value: $(this).attr('value'),
253
+ value: opt.attr('value'),
254
text: self._formatText($(this).text()),
- 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))
+ selected: opt.attr('selected'),
+ disabled: opt.attr('disabled'),
+ classes: opt.attr('class'),
+ typeahead: opt.attr('typeahead'),
+ parentOptGroup: opt.parent('optgroup'),
260
+ bgImage: o.bgImage.call(opt)
261
});
262
263
0 commit comments