HTML5 stats fix, code completion fix

This commit is contained in:
Joshua Granick
2015-03-25 22:01:29 -07:00
parent 64db93e44e
commit aa8f624f34
2 changed files with 8 additions and 2 deletions

View File

@@ -22,6 +22,9 @@ class HTML5Application {
private var cacheTime:Float;
private var parent:Application;
#if stats
private var stats:Dynamic;
#end
public inline function new (parent:Application) {
@@ -181,7 +184,7 @@ class HTML5Application {
private function handleUpdateEvent (?__):Void {
#if stats
parent.window.stats.begin ();
stats.begin ();
#end
var currentTime = Date.now ().getTime ();
@@ -198,7 +201,7 @@ class HTML5Application {
}
#if stats
parent.window.stats.end ();
stats.end ();
#end
Browser.window.requestAnimationFrame (cast handleUpdateEvent);

View File

@@ -14,7 +14,10 @@ import js.html.CanvasRenderingContext2D;
#end
@:access(lime.text.Glyph)
#if !display
@:autoBuild(lime.Assets.embedFont())
#end
class Font {