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:
be7a6e4
)
Container widgets get a default null implementation to avoid log-splurging.
author
Mike Taylor
<mike@indexdata.com>
Wed, 7 May 2014 13:16:03 +0000
(14:16 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 7 May 2014 13:16:03 +0000
(14:16 +0100)
src/mkws-widget.js
patch
|
blob
|
history
diff --git
a/src/mkws-widget.js
b/src/mkws-widget.js
index
6bb9aaa
..
464d2b4
100644
(file)
--- a/
src/mkws-widget.js
+++ b/
src/mkws-widget.js
@@
-55,6
+55,8
@@
function widget($, team, type, node) {
if (fn) {
fn.call(that);
log("made " + type + " widget(node=" + node + ")");
+ } else if (type.match(/-Container-(narrow|wide)$/)) {
+ // Not really a widget: no need to log its lack of promotion
} else {
log("made UNPROMOTED widget(type=" + type + ", node=" + node + ")");
}