Commit b57bd50a authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Fix Crib Landing Loader

parent 338d627c
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
}) })
.declareAcquiredMethod("crib_sw_put", "crib_sw_put") .declareAcquiredMethod("crib_sw_put", "crib_sw_put")
.allowPublicAcquisition("crib_sw_put", function (argument_list) { .allowPublicAcquisition("crib_sw_put", function (argument_list) {
return this.crib_sw_put.apply(this, arguments); return this.crib_sw_put(argument_list[0], argument_list[1]);
}) })
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var gadget = this, var gadget = this,
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
return; return;
} }
relativePath = relativePath.substring(from_path.length); relativePath = relativePath.substring(from_path.length);
if (!relativePath.startsWith("/") && !path_to_load.endsWith("/")) { if (path_to_load && !relativePath.startsWith("/") &&
!path_to_load.endsWith("/")) {
end_url = path_to_load + "/" + relativePath; end_url = path_to_load + "/" + relativePath;
} else if (relativePath.startsWith("/") && path_to_load.endsWith("/")) { } else if (relativePath.startsWith("/") && path_to_load.endsWith("/")) {
end_url = path_to_load + relativePath.substring(1); end_url = path_to_load + relativePath.substring(1);
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
}) })
.declareAcquiredMethod("crib_sw_put", "crib_sw_put") .declareAcquiredMethod("crib_sw_put", "crib_sw_put")
.allowPublicAcquisition("crib_sw_put", function (argument_list) { .allowPublicAcquisition("crib_sw_put", function (argument_list) {
return this.crib_sw_put.apply(this, arguments); return this.crib_sw_put(argument_list[0], argument_list[1]);
}) })
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var gadget = this, var gadget = this,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment