Skip to content

Commit

Permalink
Selectmenu: improve _setOption to make it possible to change icons op…
Browse files Browse the repository at this point in the history
…tion after init
  • Loading branch information
fnagel committed Dec 19, 2012
1 parent 8462194 commit 50d7a96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/jquery.ui.selectmenu.js
Expand Up @@ -382,6 +382,12 @@ $.widget( "ui.selectmenu", {
},

_setOption: function( key, value ) {
if ( key === "icons" ) {
this.button.find( "span.ui-icon" )
.removeClass( this.options.icons.button )
.addClass( value.button );
}

this._super( key, value );

if ( key === "appendTo" ) {
Expand Down

0 comments on commit 50d7a96

Please sign in to comment.