Skip to content

Commit

Permalink
Changed incorrectly named buildingId to defenceId in the processDefen…
Browse files Browse the repository at this point in the history
…ceNodes function.
  • Loading branch information
skiwi2 committed Jan 8, 2016
1 parent 2ca9d30 commit 2347387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function processDefenceNodes(nodes) {
var node = nodes[i];
var detailButtonElement = node.querySelector(".detail_button");
if (detailButtonElement !== null) {
var buildingId = detailButtonElement.getAttribute("ref");
var defenceId = detailButtonElement.getAttribute("ref");
var cloneLevelNode = detailButtonElement.querySelector(".level").cloneNode(true);
var children = [].slice.call(cloneLevelNode.children);

Expand All @@ -186,7 +186,7 @@ function processDefenceNodes(nodes) {
var defenceAmount = cloneLevelNode.innerHTML.trim();

defences.push({
id: buildingId,
id: defenceId,
amount: defenceAmount
});
}
Expand Down

0 comments on commit 2347387

Please sign in to comment.