projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mkws.M is defined, and M made a local alias for it, rather than the
[mkws-moved-to-github.git]
/
src
/
mkws-team.js
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
b655711
..
935bcaa
100644
(file)
--- 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.
//
// 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);
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;
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
// Finds the node of the specified class within the current team