src/js/widgets/traceWidget.js
branchpopcorn-port
changeset 841 8da49ff273e0
parent 835 a8af9da7c622
child 895 13fae7e9b4e7
--- a/src/js/widgets/traceWidget.js	Fri Mar 30 18:00:26 2012 +0200
+++ b/src/js/widgets/traceWidget.js	Tue Apr 03 20:30:12 2012 +0200
@@ -127,6 +127,7 @@
     }
     this.lastEvent = _traceName;
     this.tracer.trace(_traceName, _arg);
-    console.log("trace('" + _traceName + "', " + JSON.stringify(_arg) + ");");
-    
+    if (this._config.js_console) {
+        console.log("tracer.trace('" + _traceName + "', " + JSON.stringify(_arg) + ");");
+    }
 }