diff -r 977a39c4ee80 -r 5aadbc9f27cd src/widgets/Trace.js --- a/src/widgets/Trace.js Thu Jul 12 15:30:34 2012 +0200 +++ b/src/widgets/Trace.js Fri Jul 20 17:15:53 2012 +0200 @@ -11,7 +11,8 @@ requestmode: 'GET', syncmode: "sync", default_subject: "IRI", - tracer: null + tracer: null, + extend: false } IriSP.Widgets.Trace.prototype.draw = function() { @@ -145,6 +146,9 @@ _traceName += _listener.replace('IriSP.','').replace('.','_'); } this.lastEvent = _traceName; + if (typeof this.extend === "object" && this.extend) { + IriSP._(_arg).extend(this.extend); + } this.tracer.trace(_traceName, _arg); if (this.js_console) { console.log("tracer.trace('" + _traceName + "', " + JSON.stringify(_arg) + ");");