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

Commit

Permalink
Collapsible: modify typo in _setOption
Browse files Browse the repository at this point in the history
Note: Commit message edited by Gabriel Schulhof <gabriel.schulhof@intel.com>

Fixes gh-7044
  • Loading branch information
allsteady authored and Gabriel Schulhof committed Jan 31, 2014
1 parent eb8d2ba commit 66989bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/widgets/collapsible.js
Expand Up @@ -220,8 +220,8 @@ $.widget( "mobile.collapsible", {
}

if ( opts.iconpos !== undefined ) {
anchor.removeClass( "ui-btn-icon-" + ( currentOpts.iconPos === "right" ? "right" : "left" ) );
anchor.addClass( "ui-btn-icon-" + ( opts.iconPos === "right" ? "right" : "left" ) );
anchor.removeClass( "ui-btn-icon-" + ( currentOpts.iconpos === "right" ? "right" : "left" ) );
anchor.addClass( "ui-btn-icon-" + ( opts.iconpos === "right" ? "right" : "left" ) );
}

if ( opts.theme !== undefined ) {
Expand All @@ -231,8 +231,8 @@ $.widget( "mobile.collapsible", {
}

if ( opts.contentTheme !== undefined ) {
oldTheme = this._themeClassFromOption( "ui-body-", currentOpts.theme );
newTheme = this._themeClassFromOption( "ui-body-", opts.theme );
oldTheme = this._themeClassFromOption( "ui-body-", currentOpts.contentTheme );
newTheme = this._themeClassFromOption( "ui-body-", opts.contentTheme );
ui.content.removeClass( oldTheme ).addClass( newTheme );
}

Expand Down

0 comments on commit 66989bd

Please sign in to comment.