diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/codeq/problem.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/problem.js b/js/codeq/problem.js index e430b21..4387344 100644 --- a/js/codeq/problem.js +++ b/js/codeq/problem.js @@ -40,7 +40,7 @@ hint = tr.hint; for (key in hint) { if (!hint.hasOwnProperty(key) || !hint[key]) continue; - if (!key in defaultHint) { + if (!(key in defaultHint)) { defaultHint[key] = hint[key]; allHintKeys.push(key); } @@ -283,7 +283,7 @@ chooseDefaultTranslation = function (rawTranslations, translationKey, condition) { var tr = rawTranslations.en, // try English as the default - lang, value; + lang; if (typeof condition !== 'function') condition = function (x) { return !!x; }; if (tr && condition(tr[translationKey])) return tr[translationKey]; for (lang in rawTranslations) { // find a translation with content |