Permalink
Browse files

Collapsible set: Start using the new expand()/collapse() public API i…

…nstead of the signal-based one. Fixes #5271, #5798.
  • Loading branch information...
gabrielschulhof committed Jul 9, 2013
1 parent 0fcb5c4 commit fe60da49b06f42e66a648adbd69f6dff349b4392
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/widgets/collapsibleSet.js
@@ -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" );
}
});
}
@@ -75,7 +75,7 @@ $.widget( "mobile.collapsibleset", $.extend( {
this.element
.children( childCollapsiblesSelector )
.filter( ":jqmData(collapsed='false')" )
- .trigger( "expand" );
+ .collapsible( "expand" );
},
_setOptions: function( options ) {

0 comments on commit fe60da4

Please sign in to comment.