I am opening a new child window and creating a list of opened windows in the custom widget and gave an option to close the child window. Here is an example template of custom widget.
Child window is a pure html and JS code... result.html
Custom widget x
List of Windows:
Here the issue is with the Message class.... if i got any exception in the asynchronous process somewhere in the code ... I am using the Message to show the error message and at the same time opening the child window...
In the widget.js file, when I am closing the child window, child close event handler will remove the one item from the list.
Because of the error message showing using Message class, Close Event handler of the child window is not firing in the widget.js file.
Help required asap.