From 1e59ea3b6c29afeaf938fdb47729d2ec5f2cf7fc Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 2 May 2014 16:51:37 +0100 Subject: [PATCH] mkws.M is defined, and M made a local alias for it, rather than the other way around. Again, this is just about being honest. --- src/mkws-team.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index b655711..935bcaa 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -346,7 +346,7 @@ function team($, teamName) { // want to make it per-team so different teams can operate in // different languages. // - function M(word) { + mkws.M = function (word) { var lang = mkws.config.lang; log("in M('" + word + "'), lang=" + lang); @@ -354,8 +354,8 @@ function team($, teamName) { return word; return mkws.locale_lang[lang][word] || word; - } - mkws.M = M; // so the Handlebars helper can use it + }; + var M = mkws.M; // Finds the node of the specified class within the current team -- 1.7.10.4