conductor.configurereplacesConductor.configure- Oasis.js 0.3.0
Conductor.configure('eventCallback', function (eventHandler) {})to configure a wrapper around message event handlers.- cards may defer their activation by returning a promise from
activate. - custom services will have
errorinvoked if the environment did not provide the capability. For example:
// environment
var conductor = new Conductor(),
// both services exist
conductor.services.fulfilledCapability = Conductor.Oasis.Service;
conductor.services.unfulfilledCapability = Conductor.Oasis.Service;
// but only one capability is provided to the card
conductor.load("unfulfilled_capability_card.js", 1, { capabilities: ['fulfilledCapability']});
// sandbox
var card = Conductor.card({
consumers: {
fulfilledCapability: Conductor.Oasis.Consumer.extend({
error: function () {
// not invoked
}
}),
unfulfilledCapability: Conductor.Oasis.Consumer.extend({
error: function () {
// invoked
}
})
}
});- added partial support for IE8.
postMessageis too slow for large messages (eg transferring jQuery using xhr service) for IE8 to be considered fully supported. - added support for IE10, IE9, Firefox, Safari.
- rsvp upgraded to 2.0.0.
- oasis upgraded.
- Request handlers are no longer passed a resolver. Instead they may return values directly or return promises if the values need to be retrieved asynchronously. Returned promises may reject, which will cause promise rejection to the corresponding service or consumer.
- Card References are no longer promise entities. Instead,
card.waitForLoad()returns a promise that is resolved when the card is loaded.card.then→card.waitForLoad().then - Similarly, cards have a
waitForActivationfunction instead of a promise property. - iframe sandboxes are now started on
appendToand not onload. This means nested sandboxes are not started until the firstrender. initializeDOMis now required to callappendTofor child cards to be started. The base implementation does this for all child cards, appending them todocument.body.oasisURLmust now refer to the polyglot fileconductor.js-0.1.0.js.html. This file does not need to end inhtmlbut it does need to be served with an html content type.
15 July 2013
Initial version.