Close all modal dialogs in dojo

Does anyone know how to close all modal dialogs created by Dojo? Apparently there was a dojo.popup.closeAll function before, but it is no longer available in the latest version of Dojo API that comes with Spring JS.
This is correct…. The reason that the method no longer exists is that the person who pops up the pop-up window is responsible for closing it since 1.0. This is the architecture change I made.

Most Widgets (such as menus) monitor when they are blurred, and then close the sub-popup. Therefore, you can get the desired effect by switching the focus to the document itself or some random node. Of course this is a workaround.

Bill

Does anyone know how to close all modal dialogs created by Dojo? Obviously there was a dojo.popup.closeAll function before, but it is no longer available in the latest version of Dojo API that comes with Spring JS.

This is correct…. That method is not The reason for re-existing is that the person who popped up the pop-up window from 1.0 is responsible for closing it. This is an architectural change I made.

Most widgets (such as menus) are monitored when they are blurred, and then Close the sub-pop-up window. Therefore, you can get the desired effect by switching the focus to the document itself or some random node. Of course this is a workaround.

Bill

Leave a Comment

Your email address will not be published.