From: Mike Taylor Date: Fri, 28 Feb 2014 15:45:29 +0000 (+0000) Subject: Stupid JS doesn't have the ||= operator. X-Git-Tag: 1.0.0~1375 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=7ea0e2cad7e27c5f1d09b1658e12554ceb978d66 Stupid JS doesn't have the ||= operator. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index d6d7ef9..c17c097 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -276,7 +276,7 @@ function team($, teamName) { // Finds the node of the specified class within the current team function findnode(selector, teamName) { - teamName ||= m_teamName; + teamName = teamName || m_teamName; return $(selector + '.mkwsTeam_' + m_teamName); }