From 85b7178eb2484d7db62e74ec084f28825a260341 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 15 Apr 2014 16:54:41 +0100 Subject: [PATCH] addWidget registers its parameter w, not the function widget! --- src/mkws-team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4