projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b50ec
)
addWidget registers its parameter w, not the function widget!
author
Mike Taylor
<mike@indexdata.com>
Tue, 15 Apr 2014 15:54:41 +0000
(16:54 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 15 Apr 2014 15:54:41 +0000
(16:54 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
8872eb3
..
0ddc962
100644
(file)
--- 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;