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

Commit

Permalink
Collapsible set: Start using the new expand()/collapse() public API i…
Browse files Browse the repository at this point in the history
…nstead of the signal-based one. Fixes #5271, #5798.
  • Loading branch information
Gabriel Schulhof committed Jul 9, 2013
1 parent 0fcb5c4 commit fe60da4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/widgets/collapsibleSet.js
Expand Up @@ -55,13 +55,13 @@ $.widget( "mobile.collapsibleset", $.extend( {
if ( !$el.jqmData( "collapsiblebound" ) ) {
$el
.jqmData( "collapsiblebound", true )
.bind( "expand", function( event ) {
var closestCollapsible = $( event.target )
.closest( ".ui-collapsible" );
.bind( "collapsibleexpand", function( event ) {
var closestCollapsible = $( event.target ).closest( ".ui-collapsible" );

if ( closestCollapsible.parent().is( ":mobile-collapsibleset, :jqmData(role='collapsible-set')" ) ) {
closestCollapsible
.siblings( ".ui-collapsible:not(.ui-collapsible-collapsed)" )
.trigger( "collapse" );
.collapsible( "collapse" );
}
});
}
Expand All @@ -75,7 +75,7 @@ $.widget( "mobile.collapsibleset", $.extend( {
this.element
.children( childCollapsiblesSelector )
.filter( ":jqmData(collapsed='false')" )
.trigger( "expand" );
.collapsible( "expand" );
},

_setOptions: function( options ) {
Expand Down

0 comments on commit fe60da4

Please sign in to comment.