HTML5 fixes

This commit is contained in:
Joshua Granick
2015-03-19 10:28:22 -07:00
parent fe550ab764
commit 280a8c2a2b
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ package lime._backend.html5;
import js.html.CanvasElement;
import js.html.DivElement;
#if (haxe_ver >= "3.2")
import js.html.HTMLElement;
import js.html.Element;
#else
import js.html.HtmlElement;
#end
@@ -21,7 +21,7 @@ class HTML5Window {
public var canvas:CanvasElement;
public var div:DivElement;
public var element:#if (haxe_ver >= "3.2") HTMLElement #else HtmlElement #end;
public var element:#if (haxe_ver >= "3.2") Element #else HtmlElement #end;
#if stats
public var stats:Dynamic;
#end

View File

@@ -8,7 +8,7 @@ typedef Config = {
@:optional var borderless:Bool;
@:optional var depthBuffer:Bool;
#if (js && html5)
@:optional var element:#if (haxe_ver >= "3.2") js.html.HTMLElement #else js.html.HtmlElement #end;
@:optional var element:#if (haxe_ver >= "3.2") js.html.Element #else js.html.HtmlElement #end;
@:optional var assetsPrefix:String;
#end
@:optional var fps:Int;

View File

@@ -9,7 +9,7 @@ import haxe.Timer;
#if (js && html5)
#if (haxe_ver >= "3.2")
import js.html.HTMLElement;
import js.html.Element;
#else
import js.html.HtmlElement;
#end
@@ -43,7 +43,7 @@ class System {
@:keep @:expose("lime.embed")
public static function embed (element:Dynamic, width:Null<Int> = null, height:Null<Int> = null, background:String = null, assetsPrefix:String = null) {
var htmlElement:#if (haxe_ver >= "3.2") HTMLElement #else HtmlElement #end = null;
var htmlElement:#if (haxe_ver >= "3.2") Element #else HtmlElement #end = null;
if (Std.is (element, String)) {