Skip to content

Commit 14c98e8

Browse files
committed
Another version of jquery-archive#2363 by @jgable
1 parent f679d30 commit 14c98e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.mobile.forms.select.custom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
// index of option tag to be selected
109109
var oldIndex = self.select[ 0 ].selectedIndex,
110110
newIndex = self.list.find( "li:not(.ui-li-divider)" ).index( this ),
111-
option = self.optionElems.eq( newIndex )[ 0 ];
111+
option = self.selectOptions.eq( newIndex )[ 0 ];
112112

113113
// toggle selected status on the tag for multi selects
114114
option.selected = self.isMultiple ? !option.selected : true;
@@ -206,7 +206,7 @@
206206
var self = this,
207207
select = this.element,
208208
isMultiple = this.isMultiple,
209-
options = this.optionElems = select.find( "option" ),
209+
options = this.selectOptions = select.find( "option" ),
210210
selected = this.selected(),
211211
// return an array of all selected index's
212212
indicies = this.selectedIndices();

0 commit comments

Comments
 (0)