]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: When simulating events, make sure we use DOM elements, not jQuery objects.
authorScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 18:22:54 +0000 (14:22 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 4 Apr 2011 18:22:54 +0000 (14:22 -0400)
ui/jquery.ui.accordion.js

index c658d4dbb6af6dd172d514c103b191b1e2602259..455c66a28e0fb5242e49bb417a4aaa1243a8091d 100644 (file)
@@ -275,7 +275,7 @@ $.widget( "ui.accordion", {
                }
 
                // trying to collapse, simulate a click on the currently active header
-               active = active || this.active;
+               active = active || this.active[ 0 ];
 
                this._eventHandler({
                        target: active,