Permalink
Browse files

Collapsible: modify typo in _setOption

Fixes gh-7054
  • Loading branch information...
allsteady authored and gabrielschulhof committed Nov 16, 2013
1 parent 0121fd0 commit 92d58bd9cd2fc4caf2a64226393d873e5881f68a
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/widgets/collapsible.js
@@ -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 ) {
@@ -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 );
}

0 comments on commit 92d58bd

Please sign in to comment.