Skip to content
This repository
Browse code

Collapsible set: Changed the refresh function so it first removes dat…

…a object "collapsible-last" for each item before setting it on the last one. Fixes #4645 - collapsible-last not reset during a refresh. [1.1.2.]
  • Loading branch information...
commit 127ef523b0572c1da59701e3a406a3669eaa8835 1 parent 9d09354
Jasper de Groot authored July 05, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  js/widgets/collapsibleSet.js
3  js/widgets/collapsibleSet.js
@@ -79,7 +79,8 @@ $.widget( "mobile.collapsibleset", $.mobile.widget, {
79 79
 
80 80
 		// clean up borders
81 81
 		collapsiblesInSet.each( function() {
82  
-			$( this ).find( $.mobile.collapsible.prototype.options.heading )
  82
+			$( this ).jqmRemoveData( "collapsible-last" )
  83
+				.find( $.mobile.collapsible.prototype.options.heading )
83 84
 				.find( "a" ).first()
84 85
 				.removeClass( "ui-corner-top ui-corner-bottom" )
85 86
 				.find( ".ui-btn-inner" )

0 notes on commit 127ef52

Please sign in to comment.
Something went wrong with that request. Please try again.