src/courier/PostMessageCourier.js
function _registerProxy(eventChannel) {
                if (eventChannel && "function" === typeof eventChannel.registerProxy) {
                    eventChannel.registerProxy({
                        trigger: function () {
                            _postMessage.call(this, Array.prototype.slice.apply(arguments), ACTION_TYPE.TRIGGER);
                        },
                        context: this
                    });
                }
            }
function _registerProxy(eventChannel) {
                if (eventChannel && "function" === typeof eventChannel.registerProxy) {
                    eventChannel.registerProxy({
                        trigger: function () {
                            _postMessage.call(this, Array.prototype.slice.apply(arguments), ACTION_TYPE.TRIGGER);
                        },
                        context: this
                    });
                }
            }
function _registerProxy ( eventChannel ) { if ( eventChannel && "function" === typeof eventChannel . registerProxy ) { eventChannel . registerProxy ( { trigger : function ( ) { _postMessage . call ( this , Array . prototype . slice . apply ( arguments ) , ACTION_TYPE . TRIGGER ) ; } , context : this } ) ; } }
Registers an external call to trigger for events to propagate calls to Channels.trigger automatically
@param eventChannel
@private
Registers an external call to trigger for events to propagate calls to Channels . trigger automatically