From: Mike Taylor Date: Tue, 15 Apr 2014 15:54:41 +0000 (+0100) Subject: addWidget registers its parameter w, not the function widget! X-Git-Tag: 1.0.0~950 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=85b7178eb2484d7db62e74ec084f28825a260341;p=mkws-moved-to-github.git addWidget registers its parameter w, not the function widget! --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 8872eb3..0ddc962 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -744,7 +744,7 @@ function team($, teamName) { that.addWidget = function(w) { if (!m_widgets[w.type]) { - m_widgets[w.type] = widget; + m_widgets[w.type] = w; log("Registered '" + w.type + "' widget in team '" + m_teamName + "'"); } else if (typeof(m_widgets[w.type]) !== 'number') { m_widgets[w.type] = 2;