src/courier/PostMessageCourier.js
function _returnMessage(message, target) {
                return this.circuit.run(function (success, failure) {
                    try {
                        var initiated = this.messageChannel.postMessage.call(this.messageChannel, message, target);

                        if (false === initiated) {
                            failure();
                        }
                        else {
                            success();
                        }
                    }
                    catch (ex) {
                        failure();
                    }
                }.bind(this));
            }
function _returnMessage(message, target) {
                return this.circuit.run(function (success, failure) {
                    try {
                        var initiated = this.messageChannel.postMessage.call(this.messageChannel, message, target);

                        if (false === initiated) {
                            failure();
                        }
                        else {
                            success();
                        }
                    }
                    catch (ex) {
                        failure();
                    }
                }.bind(this));
            }
function _returnMessage ( message , target ) { return this . circuit . run ( function ( success , failure ) { try { var initiated = this . messageChannel . postMessage . call ( this . messageChannel , message , target ) ; if ( false === initiated ) { failure ( ) ; } else { success ( ) ; } } catch ( ex ) { failure ( ) ; } } . bind ( this ) ) ; }
Method for posting the returned message via the circuit breaker
@param {Object} message - the message to post.
@param {bject} [target] - optional target for post.
@private
Method for posting the returned message via the circuit breaker