Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
2.5.0-beta2
-
None
Description
When EE gadgets fail to load, say the EE gadget url is invalid, the expected callback param should contain a error property telling user about the failure.
This is aligned with the callback param with the common container navigateGadget API call.
While looking into current EE implementation, the callback is having two params, site and the full result of preload.
function ccCallback(gadgetInfo) {
if (gadgetInfo.error)
else
{ console.log("Success!"); }}
var eeRenderParams = {};
var eeDataModel = {
gadget : "<invalid gadget url>",
context : {}
};
cc.ee.navigate(
element,
eeDataModel,
eeRenderParams,
ccCallback
);