|
|
@ -300,26 +300,6 @@ function BurningDataService($http) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var myself = this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Log events
|
|
|
|
|
|
|
|
this.registerEvent("stocksLoaded", function() { |
|
|
|
|
|
|
|
console.log("Stocks fetched from server: ", Object.keys(myself.stocks)) |
|
|
|
|
|
|
|
if(DEBUG) |
|
|
|
|
|
|
|
console.log("Stocks fetched from server: ", myself.stocks) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.registerEvent("skillsLoaded", function() { |
|
|
|
|
|
|
|
console.log("Loaded " + Object.keys(myself.skills).length + " skills."); |
|
|
|
|
|
|
|
if(DEBUG) |
|
|
|
|
|
|
|
console.log("Loaded skills: ", myself.skills); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.registerEvent("traitsLoaded", function() { |
|
|
|
|
|
|
|
console.log("Loaded " + Object.keys(myself.traits).length + " traits."); |
|
|
|
|
|
|
|
if(DEBUG) |
|
|
|
|
|
|
|
console.log("Loaded traits: ", myself.traits); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fetch("/stocks") |
|
|
|
fetch("/stocks") |
|
|
|
.then((response) => response.json()) |
|
|
|
.then((response) => response.json()) |
|
|
|
.then((data) => { |
|
|
|
.then((data) => { |
|
|
|