src/courier/PostMessageChannel.js
function _hookupMessageChannel(onmessage) {
            return function() {
                this.channel = new MessageChannel();
                this.receiver = this.channel.port1;
                this.dispatcher = this.channel.port2;
                this.receiver.onmessage = onmessage;
                this.neutered = false;
            }.bind(this);
        }
function _hookupMessageChannel(onmessage) {
            return function() {
                this.channel = new MessageChannel();
                this.receiver = this.channel.port1;
                this.dispatcher = this.channel.port2;
                this.receiver.onmessage = onmessage;
                this.neutered = false;
            }.bind(this);
        }
function _hookupMessageChannel ( onmessage ) { return function ( ) { this . channel = new MessageChannel ( ) ; this . receiver = this . channel . port1 ; this . dispatcher = this . channel . port2 ; this . receiver . onmessage = onmessage ; this . neutered = false ; } . bind ( this ) ; }
Method to create and hookup message channel factory for further use
@param {Function} onmessage - the message handler to be used with the channel
@private
Method to create and hookup message channel factory for further use