Use AppName.embed instead lime.embed for HTML5 by default
This commit is contained in:
@@ -115,14 +115,7 @@ class ApplicationMain {
|
||||
|
||||
|
||||
#if (js && html5)
|
||||
@:keep @:expose("lime.::APP_FILE::.embed")
|
||||
public static function __embed (element:Dynamic, width:Null<Int> = null, height:Null<Int> = 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<Int> = null, height:Null<Int> = 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<Int> = null, height:Null<Int> = null, background:String = null, assetsPrefix:String = null) {
|
||||
|
||||
embed (element, width, height, background, assetsPrefix);
|
||||
|
||||
}
|
||||
#end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user