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

Commit

Permalink
Textinput: Use toggleClass for options corners and mini.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Aug 14, 2013
1 parent 86a6f06 commit 6e7c295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/forms/textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ $.widget( "mobile.textinput", {
}

if ( options.corners !== undefined ) {
outer.removeClass( "ui-corner-all" ).addClass( options.corners ? "ui-corner-all" : "" );
outer.toggleClass( "ui-corner-all", options.corners );
}

if ( options.mini !== undefined ) {
outer.removeClass( "ui-mini" ).addClass( options.mini ? "ui-mini" : "" );
outer.toggleClass( "ui-mini", options.mini );
}

if ( options.disabled !== undefined ) {
Expand Down

0 comments on commit 6e7c295

Please sign in to comment.