From 446ac1001ec02bd55cd73cf6906d2681bd9e7b79 Mon Sep 17 00:00:00 2001 From: piernov Date: Sat, 23 Apr 2016 17:01:12 +0200 Subject: Spelling mistake: datas→data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/craftmine.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'js') diff --git a/js/craftmine.js b/js/craftmine.js index 50d3a47..6cd2065 100644 --- a/js/craftmine.js +++ b/js/craftmine.js @@ -1,4 +1,4 @@ -datas = { +data = { gold: 0, mine: 0, miners: 1, @@ -18,31 +18,31 @@ function sendRequest(url, params, callback) { } -function updateDatas(t) { - document.getElementById(t).innerHTML = datas[t]; +function updateData(t) { + document.getElementById(t).innerHTML = data[t]; } function withdrawMine() { sendRequest("craftmine.php", "op=withdrawMine", function() { - datas.gold += parseInt(datas.mine); - datas.mine = 0; - updateDatas("gold"); - updateDatas("mine"); + data.gold += parseInt(data.mine); + data.mine = 0; + updateData("gold"); + updateData("mine"); }) } function initCraftMine() { sendRequest("craftmine.php", "op=getCraftMine", function(xhr) { var ret = xhr.responseText; - datas.gold = ret; - updateDatas("gold"); + data.gold = ret; + updateData("gold"); }) } function updateMine() { - datas.mine += (datas.miners+1); - updateDatas("mine"); + data.mine += (data.miners+1); + updateData("mine"); } function init() { -- cgit v1.2.3-70-g09d2