X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget.js;h=47fb6fd7d92b658f1053c86577f92e986315354e;hb=c3829e5f7dcd861fbb013b30e333fc46424767f0;hp=1a009b92728e531e15c58d8e61e9716d8051d8cd;hpb=f944d2112f977ffe31545ceaee8a1ebeb1e128d8;p=mkws-moved-to-github.git diff --git a/src/mkws-widget.js b/src/mkws-widget.js index 1a009b9..47fb6fd 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -13,9 +13,7 @@ mkws.makeWidget = function($, team, type, node) { config: mkws.objectInheritingFrom(team.config) }; - function log(s) { - team.log(s); - } + var log = team.log; that.log = log; that.toString = function() { @@ -180,7 +178,7 @@ mkws.makeWidget = function($, team, type, node) { if (fn) { fn.call(that); log("made " + type + " widget(node=" + node + ")"); - } else if (type.match(/-[Cc]ontainer-(narrow|wide)$/)) { + } 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 + ")");