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

Commit

Permalink
Controlgroup: Fix theme and backcompat extension use
Browse files Browse the repository at this point in the history
  • Loading branch information
arschmitz authored and jaspermdegroot committed Aug 2, 2015
1 parent 20fd366 commit c07486e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions js/widgets/controlgroup.backcompat.js
Expand Up @@ -51,6 +51,8 @@ $.widget( "ui.controlgroup", $.ui.controlgroup, {
this._super();
},

classProp: "ui-controlgroup",

_setOption: function( key, value ) {
if ( key === "direction" ) {
this.options.type = value;
Expand Down
9 changes: 1 addition & 8 deletions js/widgets/controlgroup.js
Expand Up @@ -33,8 +33,7 @@

$.widget( "ui.controlgroup", $.ui.controlgroup, {
options: {
enhanced: false,
theme: null
theme: "inherit"
},

_create: function() {
Expand All @@ -54,12 +53,6 @@ $.widget( "ui.controlgroup", $.ui.controlgroup, {
return this.element;
},

_enhance: function() {
if ( !this.options.enhanced ) {
this._super();
}
},

_themeElements: function() {
return [
{
Expand Down

0 comments on commit c07486e

Please sign in to comment.