Opened 9 years ago
Last modified 9 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: |
Description
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.