#4630 closed bug (worksforme)
Dialog "dialogclose" handlers receive wrong parameters
Reported by: | diogobaeder | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.dialog | Version: | 1.7.2 |
Keywords: | dialog events close arguments parameters | Cc: | |
Blocked by: | Blocking: |
Description
As documented on the website, the "dialogclose" event handlers should receive two arguments, "event" and "ui", but they're only receiving "event". Passing "ui" as a parameter would be nice, so that the client code could easily access the original elements used to create the dialogs, using "ui.helper" to get them (the context used in the handlers is actually the "ui-dialog" wrapper, not the original element).
My workaround for this was to pass a data argument with the original element as one of its properties, while the bug is not fixed.
Thanks!
Note: See
TracTickets for help on using
tickets.
The context of the event is the original element, not the wrapper. Also, there is no relevant information to pass in the ui hash, so it is undefined.