From: Scott González Date: Mon, 4 Apr 2011 18:22:54 +0000 (-0400) Subject: Accordion: When simulating events, make sure we use DOM elements, not jQuery objects. X-Git-Tag: 1.9m5~145 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fc5291291bcea7a4dd5fc07fcd6a7b4e55ae55c0;p=jquery-ui.git Accordion: When simulating events, make sure we use DOM elements, not jQuery objects. --- diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index c658d4dbb..455c66a28 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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,