| Name | Description |
|---|---|
| closeAllPopups | Immediately closes all open modals and overlays. |
| Note: All modal and overlay components are designed with their own "close" buttons, and have their own way of closing and cleaning-up after themselves. If any component's behavior is not satisfactory, the individual component should be improved upon. Do not rely on closeAllPopups to force-close undesired behavior. This method is not intended to be the default way of closing modals and overlays. Tieing this method to another purpose or function (such as a hash change) is the expected use case. |
Demo: Calling closeAllPopups will immediately close all modals and overlays. For demonstration purposes, we will add a time delay to allow the modal/overlay to be visible before calling this method. (Note: closeAllPopups does NOT come with a delay; you must create your own delay - if desired.)