Skip to content

Commit

Permalink
Added explicit close function
Browse files Browse the repository at this point in the history
Call `msc.close()` to explicitly close an alert.
  • Loading branch information
brijeshb42 committed Mar 8, 2016
1 parent dfd5f5d commit 69b2ba2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/msc-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,6 @@
window.mscAlert = function(title, sub, onOk, onCancel) {
buildUI(title, sub, onOk, onCancel, "alert");
};
window.msc = {};
window.msc.close = destroy;
})();

0 comments on commit 69b2ba2

Please sign in to comment.