Bläddra i källkod

bugfix js when only rebinding traceOutput

Nicolas Cannasse 8 år sedan
förälder
incheckning
b97af339a8
1 ändrade filer med 1 tillägg och 0 borttagningar
  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