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

Commit

Permalink
Collapsible: Account for the possibility that the collapsibleset widg…
Browse files Browse the repository at this point in the history
…et is not defined.
  • Loading branch information
Gabriel Schulhof committed Apr 19, 2013
1 parent 04a449a commit 3f6a188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/widgets/collapsible.js
Expand Up @@ -28,10 +28,11 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
_create: function() {
var $el = this.element,
o = this.options,
collapsiblesetWidgetSelector = ( $.mobile.collapsibleset ? ", :mobile-collapsibleset" : "" ),
collapsible = $el.addClass( "ui-collapsible" ),
collapsibleHeading = $el.children( o.heading ).first(),
collapsibleContent = collapsible.wrapInner( "<div class='ui-collapsible-content'></div>" ).children( ".ui-collapsible-content" ),
collapsibleSet = $el.closest( ":jqmData(role='collapsible-set'), :mobile-collapsibleset" ).addClass( "ui-collapsible-set" ),
collapsibleSet = $el.closest( ":jqmData(role='collapsible-set')" + collapsiblesetWidgetSelector ).addClass( "ui-collapsible-set" ),
collapsibleClasses = "";

// Replace collapsibleHeading if it's a legend
Expand Down

0 comments on commit 3f6a188

Please sign in to comment.