Commit 3bbabc15 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Release renderJS 0.9.0

parent 44b646ab
This diff is collapsed.
This diff is collapsed.
...@@ -1701,9 +1701,6 @@ if (typeof document.contains !== 'function') { ...@@ -1701,9 +1701,6 @@ if (typeof document.contains !== 'function') {
last_acquisition_gadget = new RenderJSGadget(); last_acquisition_gadget = new RenderJSGadget();
last_acquisition_gadget.__acquired_method_dict = { last_acquisition_gadget.__acquired_method_dict = {
getTopURL: function () {
return url;
},
reportServiceError: function (param_list) { reportServiceError: function (param_list) {
letsCrash(param_list[0]); letsCrash(param_list[0]);
} }
...@@ -1815,30 +1812,19 @@ if (typeof document.contains !== 'function') { ...@@ -1815,30 +1812,19 @@ if (typeof document.contains !== 'function') {
}); });
return; return;
} }
// Get Top URL connection_ready = true;
return tmp_constructor.prototype.__aq_parent('getTopURL', []) notifyReady();
.then(function (topURL) { //the channel is ok
var base = document.createElement('base'); //so bind calls to renderJS method on the instance
base.href = topURL; embedded_channel.bind("methodCall", function (trans, v) {
base.target = "_top"; root_gadget[v[0]].apply(root_gadget, v[1])
document.head.appendChild(base); .then(function (g) {
connection_ready = true; trans.complete(g);
notifyReady(); }).fail(function (e) {
//the channel is ok trans.error(e.toString());
//so bind calls to renderJS method on the instance
embedded_channel.bind("methodCall", function (trans, v) {
root_gadget[v[0]].apply(root_gadget, v[1])
.then(function (g) {
trans.complete(g);
}).fail(function (e) {
trans.error(e.toString());
});
trans.delayReturn(true);
}); });
}) trans.delayReturn(true);
.fail(function (error) { });
throw error;
});
} }
}); });
......
This diff is collapsed.
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