Add straight-through aliases for trace(), debug() etc.
authorMike Taylor <mike@indexdata.com>
Thu, 20 Nov 2014 10:53:45 +0000 (10:53 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 20 Nov 2014 10:53:45 +0000 (10:53 +0000)
src/mkws-widget.js

index bb10767..1b5445a 100644 (file)
@@ -14,6 +14,12 @@ mkws.makeWidget = function($, team, type, node) {
   };
 
   that.log = team.log;
+  that.trace = team.trace;
+  that.debug = team.debug;
+  that.info = team.info;
+  that.warn = team.warn;
+  that.error = team.error;
+  that.fatal = team.fatal;
 
   that.toString = function() {
     return '[Widget ' + team.name() + ':' + type + ']';