From 0b6144660f10963d83e78723de0b689cbdc295ac Mon Sep 17 00:00:00 2001 From: Matt Rasmus Date: Sun, 7 Jul 2013 13:25:30 -0700 Subject: [PATCH] Fixed a bug in which the share/restart buttons would disappear in certain situations. --- script/space.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/space.js b/script/space.js index 4a3bf44..89028fc 100644 --- a/script/space.js +++ b/script/space.js @@ -247,7 +247,7 @@ var Space = { } }, 1000); - setTimeout(function() { + Space._panelTimeout = setTimeout(function() { $('#spacePanel, .deleteSave, .share').animate({color: 'white'}, 500, 'linear'); }, Space.FTB_SPEED / 2); @@ -308,6 +308,7 @@ var Space = { Space.done = true; clearInterval(Space._timer); clearInterval(Space._shipTimer); + clearTimeout(Space._panelTimeout); // Craaaaash! $('body').removeClass('noMask').stop().animate({