From 17c622741264958dd3b03bc1bed71a73534e5913 Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Fri, 8 Mar 2013 12:29:36 +0100 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20use=20reserved=20keyword=20in?= =?UTF-8?q?=20JS=20as=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/chat.js b/code/chat.js index dc01f3f2..06835bef 100644 --- a/code/chat.js +++ b/code/chat.js @@ -578,13 +578,13 @@ window.chat.postMsg = function() { if(c === 'debug') return new Function (msg)(); - var public = c === 'public'; + var publik = c === 'public'; var latlng = map.getCenter(); var data = {message: msg, latE6: Math.round(latlng.lat*1E6), lngE6: Math.round(latlng.lng*1E6), - factionOnly: !public}; + factionOnly: !publik}; var errMsg = 'Your message could not be delivered. You can copy&' + 'paste it here and try again if you want:\n\n' + msg; @@ -592,7 +592,7 @@ window.chat.postMsg = function() { window.postAjax('sendPlext', data, function(response) { if(response.error) alert(errMsg); - if(public) chat.requestPublic(false); else chat.requestFaction(false); }, + if(publik) chat.requestPublic(false); else chat.requestFaction(false); }, function() { alert(errMsg); }