From 2ffd0bd7d80650d11d65369b0bee5e461589bce2 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 22 Jan 2013 20:41:42 +0100 Subject: [PATCH] =?UTF-8?q?Einen=20Publisher=20eingebaut,=20der=20auf=20da?= =?UTF-8?q?s=20Terminal=20ausgibt,=20wird=20prim=C3=A4r=20f=C3=BCr=20debug?= =?UTF-8?q?ging=20Zwecke=20gebaut.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- event.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/event.js b/event.js index d1f3c53..9464352 100644 --- a/event.js +++ b/event.js @@ -126,10 +126,17 @@ EventTool.prototype.publishIdentica = function() { log('Verschicke einen Dent'); } +EventTool.prototype.publishConsole = function() { + var self = this; + var view = self.processEventData(); + log(util.inspect(view)); +} + EventTool.prototype.setupPublishers = function() { this.on('mail',this.publishMail); this.on('identica',this.publishIdentica); this.on('latex',this.publishLatex); + this.on('console',this.publishConsole); } EventTool.prototype.processEvents = function() {