From 592665629d757cba1b43340288597aa6b3d1270a Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 22 Dec 2016 14:34:33 -0800 Subject: [PATCH] Use AppName.embed instead lime.embed for HTML5 by default --- templates/haxe/ApplicationMain.hx | 17 +++++++++-------- templates/html5/template/index.html | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 03adc5710..11f49092e 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -115,14 +115,7 @@ class ApplicationMain { #if (js && html5) - @:keep @:expose("lime.::APP_FILE::.embed") - public static function __embed (element:Dynamic, width:Null = null, height:Null = null, background:String = null, assetsPrefix:String = null) { - - embed (element, width, height, background, assetsPrefix); - - } - - @:keep @:expose("lime.embed") + @:keep @:expose("::APP_FILE::.embed") public static function embed (element:Dynamic, width:Null = null, height:Null = null, background:String = null, assetsPrefix:String = null) { var htmlElement:js.html.Element = null; @@ -180,6 +173,14 @@ class ApplicationMain { create (); } + + + @:keep @:expose("lime.embed") + public static function _embed (element:Dynamic, width:Null = null, height:Null = null, background:String = null, assetsPrefix:String = null) { + + embed (element, width, height, background, assetsPrefix); + + } #end diff --git a/templates/html5/template/index.html b/templates/html5/template/index.html index e1ea2cf75..9e784dc42 100755 --- a/templates/html5/template/index.html +++ b/templates/html5/template/index.html @@ -49,7 +49,7 @@