Container widgets get a default null implementation to avoid log-splurging.
authorMike Taylor <mike@indexdata.com>
Wed, 7 May 2014 13:16:03 +0000 (14:16 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 7 May 2014 13:16:03 +0000 (14:16 +0100)
src/mkws-widget.js

index 6bb9aaa..464d2b4 100644 (file)
@@ -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 + ")");
   }