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

Commit f380d2a

Browse files
author
Gabriel Schulhof
committed
Collapsible: Add refresh() method which basically applies an empty set of options.
1 parent 17d7b77 commit f380d2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/widgets/collapsible.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ $.widget( "mobile.collapsible", {
170170
return ret;
171171
},
172172

173+
refresh: function() {
174+
this._setOptions( {} );
175+
},
176+
173177
_setOptions: function( options ) {
174178
var key,
175179
opts = $.extend( {}, this.options, options ),

0 commit comments

Comments
 (0)