Remove deprecated assetsPrefix parameter
This commit is contained in:
@@ -3,9 +3,6 @@ package lime.app;
|
||||
|
||||
typedef Config = {
|
||||
|
||||
#if ((js && html5) && lime < "5.0.0")
|
||||
@:deprecated @:optional var assetsPrefix:String;
|
||||
#end
|
||||
@:optional var build:String;
|
||||
@:optional var company:String;
|
||||
@:optional var file:String;
|
||||
|
||||
@@ -142,23 +142,10 @@ class System {
|
||||
if (Reflect.field (config.windows[0], "rootPath")) {
|
||||
|
||||
config.rootPath = Reflect.field (config.windows[0], "rootPath");
|
||||
#if (lime < "5.0.0")
|
||||
Reflect.setField (config, "assetsPrefix", config.rootPath);
|
||||
#end
|
||||
Reflect.deleteField (config.windows[0], "rootPath");
|
||||
|
||||
}
|
||||
|
||||
#if (lime < "5.0.0")
|
||||
if (Reflect.field (config.windows[0], "assetsPrefix")) {
|
||||
|
||||
config.rootPath = Reflect.field (config.windows[0], "assetsPrefix");
|
||||
Reflect.setField (config, "assetsPrefix", config.rootPath);
|
||||
Reflect.deleteField (config.windows[0], "assetsPrefix");
|
||||
|
||||
}
|
||||
#end
|
||||
|
||||
config.windows[0].element = htmlElement;
|
||||
config.windows[0].width = width;
|
||||
config.windows[0].height = height;
|
||||
|
||||
Reference in New Issue
Block a user