A bit of cleanup.

This commit is contained in:
Michael
2013-10-16 17:45:41 -04:00
parent a895a35939
commit 1ffe8f8aeb
3 changed files with 113 additions and 109 deletions
+8 -8
View File
@@ -387,17 +387,17 @@ var Space = {
},
complete: function() {
Engine.GAME_OVER = true;
var backup;
$('#starsContainer').remove();
var backup;
$('#starsContainer').remove();
if(typeof Storage != 'undefined' && localStorage) {
backup = Prestige.save();
localStorage.clear();
backup = Prestige.save();
localStorage.clear();
}
delete window.State;
$('.deleteSave, .share').remove();
Prestige.populateNewSave(backup);
$('#content, #notifications').remove();
$('.deleteSave, .share').attr('style', 'color: white;');
$('.deleteSave, .share').remove();
Prestige.populateNewSave(backup);
$('#content, #notifications').remove();
$('.deleteSave, .share').attr('style', 'color: white;');
Engine.options = {};
}
});