From 1ea331e47aca4c6c7a0368dbbac4c9734a87bf04 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 22 Dec 2016 12:28:58 -0800 Subject: [PATCH] Add 'lime.AppFileName.embed' as a temporary patch for multiple embeds on the same HTML page --- templates/haxe/ApplicationMain.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 0f8010bd6..03adc5710 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -115,6 +115,13 @@ 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") public static function embed (element:Dynamic, width:Null = null, height:Null = null, background:String = null, assetsPrefix:String = null) {