Commit 279cbb16 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Crib Launcher: Make crib enable getScope function available

parent 8858c872
......@@ -380,6 +380,9 @@
.allowPublicAcquisition("crib_sw_get", function (param_list) {
return callCribSWGadget(this, "get", param_list);
})
.allowPublicAcquisition("crib_sw_getScope", function (param_list) {
return callCribSWGadget(this, "getScope", param_list);
})
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
......
......@@ -111,6 +111,12 @@
.push(function (storage_gadget) {
return storage_gadget.remove(url);
});
})
.declareMethod('getScope', function () {
return getStorageGadget(this)
.push(function (storage_gadget) {
return storage_gadget.getScope();
});
});
}(window, rJS, RSVP, jIO));
\ No newline at end of file
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