Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Collapsible: modify typo in _setOption

Fixes gh-7054
  • Loading branch information...
commit 92d58bd9cd2fc4caf2a64226393d873e5881f68a 1 parent 0121fd0
@allsteady allsteady authored gabrielschulhof committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/widgets/collapsible.js
View
8 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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.