From 69b2ba266ef9bd71aa28d4d90834bd43c758b203 Mon Sep 17 00:00:00 2001 From: Brijesh Bittu Date: Tue, 8 Mar 2016 13:09:44 +0530 Subject: [PATCH] Added explicit close function Call `msc.close()` to explicitly close an alert. --- js/msc-script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/msc-script.js b/js/msc-script.js index 40e84cd..20c72c7 100644 --- a/js/msc-script.js +++ b/js/msc-script.js @@ -154,4 +154,6 @@ window.mscAlert = function(title, sub, onOk, onCancel) { buildUI(title, sub, onOk, onCancel, "alert"); }; + window.msc = {}; + window.msc.close = destroy; })();