From 97c255c59ef0eaa6377641c13f250c902f0bc02b Mon Sep 17 00:00:00 2001 From: milad Date: Mon, 16 Oct 2017 16:12:54 -0400 Subject: [PATCH] Fix for fogbugz:8382 to shutdown debug window on reload scripts --- scripts/developer/debugging/debugWindow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/developer/debugging/debugWindow.js b/scripts/developer/debugging/debugWindow.js index 6dd116089a..b16739b2b8 100644 --- a/scripts/developer/debugging/debugWindow.js +++ b/scripts/developer/debugging/debugWindow.js @@ -53,4 +53,8 @@ ScriptDiscoveryService.clearDebugWindow.connect(function() { window.clearDebugWindow(); }); +Script.scriptEnding.connect(function () { + window.close(); +}) + }());