浏览代码

bugfix js when only rebinding traceOutput

Nicolas Cannasse 8 年之前
父节点
当前提交
b97af339a8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      std/haxe/Log.hx

+ 1 - 0
std/haxe/Log.hx

@@ -66,6 +66,7 @@ class Log {
 		#if sys
 		Sys.println(v);
 		#elseif js
+		if( v == null ) trace = trace; // hack to keep trace() if we keep traceOutput()
 		if( js.Lib.typeof(untyped console) != "undefined" && (untyped console).log != null )
 			(untyped console).log(v);
 		#elseif lua