Skip to content
Permalink
Browse files

trace fixes for js drivers under haxe 4 #32

  • Loading branch information
hypersurge committed Dec 30, 2019
1 parent f2e2015 commit 58eb092a1cd79f89d7e15b6570e08f54598ce54d
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/awe6/core/drivers/createjs/Factory.hx
  2. +1 −1 lib/awe6/core/drivers/pixijs/Factory.hx
@@ -36,6 +36,7 @@ import haxe.Http;
import haxe.io.Bytes;
import haxe.Log;
import haxe.PosInfos;
import js.Browser;

/**
* This Factory class provides CreateJS target overrides.
@@ -63,7 +64,7 @@ class Factory extends AFactory
// removes PosInfos in the wild
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();
@@ -66,7 +66,7 @@ class Factory extends AFactory
// removes PosInfos in the wild
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" );

0 comments on commit 58eb092

Please sign in to comment.
You can’t perform that action at this time.