Remove deprecated assetsPrefix parameter

This commit is contained in:
Joshua Granick
2017-05-17 17:50:51 -07:00
parent 67d971a081
commit ae9e74a04e
2 changed files with 0 additions and 16 deletions

View File

@@ -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;

View File

@@ -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;