From bdaa046412857d0880e379434956b4ba7fdb840c Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Mon, 9 Jul 2012 15:14:44 +0100 Subject: [PATCH] if there are old extendedInfo screens hanging around when a screen is shown, tear it down --- resources/static/common/js/screens.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/static/common/js/screens.js b/resources/static/common/js/screens.js index d4f991ecc..d852bb982 100644 --- a/resources/static/common/js/screens.js +++ b/resources/static/common/js/screens.js @@ -22,6 +22,12 @@ BrowserID.Screens = (function() { // extendedInfo takes care of info that is on a screen but hidden by // default. When the user clicks the "open extended info" button, it // is displayed to them. + + if (self.extendedInfo) { + // sometimes a screen is overwritten and never hidden. When this + // happens, old extendedInfos need to be torn down. + self.extendedInfo.stop(); + } self.extendedInfo = bid.Modules.ExtendedInfo.create(); self.extendedInfo.start({ target: target }); -- GitLab