From 967d6595a6387e74f3fb2f87233d0f82e2f4d8c7 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 30 Jan 2009 03:27:44 +0000 Subject: Accordion: Fixed destroy method with new markup. --- ui/ui.accordion.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 4fa0869f3..59ae6910a 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -105,9 +105,7 @@ $.widget("ui.accordion", { this.headers.find("a").removeAttr("tabindex"); this.headers.children(".ui-icon").remove(); - this.headers.next().removeClass("ui-accordion-content ui-accordion-content-active").each(function() { - $(this).parent().replaceWith(this); - }); + this.headers.next().removeClass("ui-accordion-content ui-accordion-content-active"); }, -- cgit v1.2.3