]> source.dussan.org Git - jquery-ui.git/commitdiff
Accordion: Fixed parameters in dispatched events.
authorScott González <scott.gonzalez@gmail.com>
Fri, 27 Jun 2008 13:12:03 +0000 (13:12 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 27 Jun 2008 13:12:03 +0000 (13:12 +0000)
ui/ui.accordion.js

index 208bc313d58d9fbb0b65942686394ab5ba4ed090..2cf014b8ec7eb4d7f25f19daa63c8e13127fa57e 100644 (file)
@@ -111,7 +111,7 @@ function completed(cancel) {
                        overflow: ""
                });
        }
-       $(this).triggerHandler("accordionchange", [null, options.data], options.change);
+       $(this).triggerHandler("accordionchange", [$.event.fix({type: 'accordionchange', target: instance.element[0]}), options.data], options.change);
 }
 
 function toggle(toShow, toHide, data, clickedActive, down) {