Skip to main content

Search and Top Navigation

#4630 closed bug (worksforme)

Opened June 24, 2009 03:29AM UTC

Closed June 24, 2009 12:40PM UTC

Last modified October 11, 2012 09:15PM UTC

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!

Attachments (0)
Change History (2)

Changed June 24, 2009 12:40PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

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.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted