[About] Provide default cancel for overlays

For overlays that do not need to do special things when a
window is dismissed, provide a default cancel function.
This simplifies implementation of the information-only
dialogs, such as the About dialog, WTD-667.
This commit is contained in:
Victor Woeltjen
2015-01-14 11:53:51 -08:00
parent 97d4f34ae2
commit 553eb2dd75
2 changed files with 17 additions and 11 deletions

View File

@ -76,8 +76,8 @@ define(
// Add the overlay using the OverlayService, which
// will handle actual insertion into the DOM
overlay = overlayService.createOverlay(
overlayModel,
"overlay-dialog"
"overlay-dialog",
overlayModel
);
// Track that a dialog is already visible, to