From: Mike Taylor Date: Fri, 2 May 2014 15:51:37 +0000 (+0100) Subject: mkws.M is defined, and M made a local alias for it, rather than the X-Git-Tag: 1.0.0~746 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1e59ea3b6c29afeaf938fdb47729d2ec5f2cf7fc 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. --- 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