Permalink
Browse files

Fixes #4252 - Prevent adding ui-btn-icon-right class when there is n…

…o icon.
  • Loading branch information...
jaspermdegroot committed Jun 7, 2012
1 parent e583d00 commit 03f9c6cf6e5d02816cff5f31892671deb943b4da
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.forms.select.js
@@ -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
@@ -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,

0 comments on commit 03f9c6c

Please sign in to comment.