Opened 8 years ago

Last modified 8 years ago

#14532 confirmed Bug

Inconsistent API of dialog.openDialog

Reported by: Godefroid Chapelle Owned by:
Priority: Normal Milestone:
Component: General Version: 4.5.7
Keywords: Cc:


In case of asynchronous loading of the dialog script with scriptLoader, dialog variable is null. In the other case, when the dialog had already been loaded, dialog variable points to the actual dialog.

As this API cannot be consistent because of asynchronous load, I'd suggest returning nothing. IOW remove the line with return

Also, the documentation is wrong.


Change History (1)

comment:1 Changed 8 years ago by Marek Lewandowski

Status: newconfirmed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy