From: Tim Düsterhus Date: Mon, 18 May 2015 22:46:32 +0000 (+0200) Subject: Fix code style of WoltLab/WCF/Language X-Git-Tag: 3.0.0_Beta_1~2385^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98ecc0b50c12080de36d3ad05758942b9642bff4;p=GitHub%2FWoltLab%2FWCF.git Fix code style of WoltLab/WCF/Language --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Language.js b/wcfsetup/install/files/js/WoltLab/WCF/Language.js index 8bda567c5d..c34f31e0c4 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Language.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Language.js @@ -9,7 +9,7 @@ define(['Dictionary', './Template'], function(Dictionary, Template) { "use strict"; - var languageItems = new Dictionary(); + var _languageItems = new Dictionary(); /** * @constructor @@ -21,8 +21,8 @@ define(['Dictionary', './Template'], function(Dictionary, Template) { * * @param {Object.} object */ - addObject: function (object) { - languageItems.merge(Dictionary.fromObject(object)); + addObject: function(object) { + _languageItems.merge(Dictionary.fromObject(object)); }, /** @@ -32,7 +32,7 @@ define(['Dictionary', './Template'], function(Dictionary, Template) { * @param {string} value */ add: function(key, value) { - languageItems.set(key, value); + _languageItems.set(key, value); }, /** @@ -47,7 +47,7 @@ define(['Dictionary', './Template'], function(Dictionary, Template) { get: function(key, parameters) { if (!parameters) parameters = { }; - var value = languageItems.get(key); + var value = _languageItems.get(key); if (value === undefined) { console.warn("Trying to get() undefined language item."); @@ -56,8 +56,8 @@ define(['Dictionary', './Template'], function(Dictionary, Template) { if (typeof value === 'string') { // lazily convert to WCF.Template - languageItems.set(key, new Template(value)); - value = languageItems.get(key); + _languageItems.set(key, new Template(value)); + value = _languageItems.get(key); } if (value instanceof Template) {