src/courier/PostMessageMapper.js
function _getMappedMethod(message) {
            var method = message && message.method;
            var name = method && method.name;
            var args = method && method.args;
            var eventChannel = this.eventChannel;

            return function() {
                if (eventChannel && eventChannel[name]) {
                    return eventChannel[name].apply(eventChannel, args);
                }
                else {
                    /* istanbul ignore next  */
                    PostMessageUtilities.log("No channel exists", "ERROR", "PostMessageMapper");
                }
            };
        }
function _getMappedMethod(message) {
            var method = message && message.method;
            var name = method && method.name;
            var args = method && method.args;
            var eventChannel = this.eventChannel;

            return function() {
                if (eventChannel && eventChannel[name]) {
                    return eventChannel[name].apply(eventChannel, args);
                }
                else {
                    /* istanbul ignore next  */
                    PostMessageUtilities.log("No channel exists", "ERROR", "PostMessageMapper");
                }
            };
        }
function _getMappedMethod ( message ) { var method = message && message . method ; var name = method && method . name ; var args = method && method . args ; var eventChannel = this . eventChannel ; return function ( ) { if ( eventChannel && eventChannel [ name ] ) { return eventChannel [ name ] . apply ( eventChannel , args ) ; } else { /* istanbul ignore next  */ PostMessageUtilities . log ( "No channel exists" , "ERROR" , "PostMessageMapper" ) ; } } ; }
Method getting the mapped method on the event channel after which it can be invoked
@param {Object} message - the message to be mapped
optional additional method arguments
@return {Function} the function to invoke on the event channel
@private
Method getting the mapped method on the event channel after which it can be invoked