Skip to content

Commit

Permalink
trace fixes for js drivers under haxe 4 #32
Browse files Browse the repository at this point in the history
  • Loading branch information
hypersurge committed Dec 30, 2019
1 parent f2e2015 commit 58eb092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/awe6/core/drivers/createjs/Factory.hx
Expand Up @@ -36,6 +36,7 @@ import haxe.Http;
import haxe.io.Bytes; import haxe.io.Bytes;
import haxe.Log; import haxe.Log;
import haxe.PosInfos; import haxe.PosInfos;
import js.Browser;


/** /**
* This Factory class provides CreateJS target overrides. * This Factory class provides CreateJS target overrides.
Expand Down Expand Up @@ -63,7 +64,7 @@ class Factory extends AFactory
// removes PosInfos in the wild // removes PosInfos in the wild
Log.trace = function( p_value:Dynamic, ?p_infos:PosInfos ):Void Log.trace = function( p_value:Dynamic, ?p_infos:PosInfos ):Void
{ {
untyped js.Boot.__trace( p_value, null ); Browser.window.console.log( p_value );
} }
} }
var l_context = new Context(); var l_context = new Context();
Expand Down
2 changes: 1 addition & 1 deletion lib/awe6/core/drivers/pixijs/Factory.hx
Expand Up @@ -66,7 +66,7 @@ class Factory extends AFactory
// removes PosInfos in the wild // removes PosInfos in the wild
Log.trace = function( p_value:Dynamic, ?p_infos:PosInfos ):Void Log.trace = function( p_value:Dynamic, ?p_infos:PosInfos ):Void
{ {
untyped js.Boot.__trace( p_value, null ); Browser.window.console.log( p_value );
} }
} }
canvas = cast Browser.document.getElementById( "gameCanvas" ); canvas = cast Browser.document.getElementById( "gameCanvas" );
Expand Down

0 comments on commit 58eb092

Please sign in to comment.