From df0de8aa67fe98e4900a88043049857bb1e1d5b0 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 20 Nov 2014 10:53:45 +0000 Subject: [PATCH] Add straight-through aliases for trace(), debug() etc. --- src/mkws-widget.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mkws-widget.js b/src/mkws-widget.js index bb10767..1b5445a 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -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 + ']'; -- 1.7.10.4