Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Fixes #4252 - Prevent adding ui-btn-icon-right class when there is no…
Browse files Browse the repository at this point in the history
… icon.
  • Loading branch information
jaspermdegroot committed Jun 7, 2012
1 parent e583d00 commit 03f9c6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.mobile.forms.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
var self = this,

options = this.options,

iconpos = options.icon ? ( options.iconpos || this.select.jqmData( "iconpos" ) ) : false,

// IE throws an exception at options.item() function when
// there is no selected item
Expand All @@ -100,7 +102,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
.buttonMarkup( {
theme: options.theme,
icon: options.icon,
iconpos: options.iconpos,
iconpos: iconpos,
inline: options.inline,
corners: options.corners,
shadow: options.shadow,
Expand Down

0 comments on commit 03f9c6c

Please sign in to comment.