Skip to content
Snippets Groups Projects
Commit bdaa0464 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

if there are old extendedInfo screens hanging around when a screen is shown, tear it down

parent e0e0e5e0
No related branches found
No related tags found
No related merge requests found
......@@ -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 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment