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

Commit fe60da4

Browse files
author
Gabriel Schulhof
committed
Collapsible set: Start using the new expand()/collapse() public API instead of the signal-based one. Fixes #5271, #5798.
1 parent 0fcb5c4 commit fe60da4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/widgets/collapsibleSet.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ $.widget( "mobile.collapsibleset", $.extend( {
5555
if ( !$el.jqmData( "collapsiblebound" ) ) {
5656
$el
5757
.jqmData( "collapsiblebound", true )
58-
.bind( "expand", function( event ) {
59-
var closestCollapsible = $( event.target )
60-
.closest( ".ui-collapsible" );
58+
.bind( "collapsibleexpand", function( event ) {
59+
var closestCollapsible = $( event.target ).closest( ".ui-collapsible" );
60+
6161
if ( closestCollapsible.parent().is( ":mobile-collapsibleset, :jqmData(role='collapsible-set')" ) ) {
6262
closestCollapsible
6363
.siblings( ".ui-collapsible:not(.ui-collapsible-collapsed)" )
64-
.trigger( "collapse" );
64+
.collapsible( "collapse" );
6565
}
6666
});
6767
}
@@ -75,7 +75,7 @@ $.widget( "mobile.collapsibleset", $.extend( {
7575
this.element
7676
.children( childCollapsiblesSelector )
7777
.filter( ":jqmData(collapsed='false')" )
78-
.trigger( "expand" );
78+
.collapsible( "expand" );
7979
},
8080

8181
_setOptions: function( options ) {

0 commit comments

Comments
 (0)