Fixed Stock market UI compilation errors and removed refactored code

This commit is contained in:
danielyxie
2019-04-23 01:48:15 -07:00
committed by danielyxie
parent 4809a21e38
commit d7fb335815
6 changed files with 647 additions and 1438 deletions
-14
View File
@@ -47,8 +47,6 @@ import {
import {
initStockMarket,
initSymbolToStockMap,
stockMarketContentCreated,
setStockMarketContentCreated
} from "./StockMarket/StockMarket";
import { Terminal, postNetburnerText } from "./Terminal";
@@ -163,13 +161,6 @@ function prestigeAugmentation() {
initStockMarket();
initSymbolToStockMap();
}
setStockMarketContentCreated(false);
var stockMarketList = document.getElementById("stock-market-list");
while(stockMarketList.firstChild) {
stockMarketList.removeChild(stockMarketList.firstChild);
}
var watchlist = document.getElementById("stock-market-watchlist-filter");
watchlist.value = ""; // Reset watchlist filter
// Refresh Main Menu (the 'World' menu, specifically)
document.getElementById("world-menu-header").click();
@@ -336,11 +327,6 @@ function prestigeSourceFile() {
initStockMarket();
initSymbolToStockMap();
}
setStockMarketContentCreated(false);
var stockMarketList = document.getElementById("stock-market-list");
while(stockMarketList.firstChild) {
stockMarketList.removeChild(stockMarketList.firstChild);
}
if (Player.inGang()) { Player.gang.clearUI(); }
Player.gang = null;