src/Channels.js
function _wrapCalls(options){
            return function(){
                var api;

                options.func.apply(options.context, Array.prototype.slice.call(arguments, 0));

                for (var i = 0; i < externalAPIS.length; i++) {
                    api = externalAPIS[i];
                    if (api[options.triggerType]) {
                        try {
                            api[options.triggerType].apply(api.context,Array.prototype.slice.call(arguments, 0));
                        }
                        catch (exc) {}
                    }
                }
            };
        }
function _wrapCalls(options){
            return function(){
                var api;

                options.func.apply(options.context, Array.prototype.slice.call(arguments, 0));

                for (var i = 0; i < externalAPIS.length; i++) {
                    api = externalAPIS[i];
                    if (api[options.triggerType]) {
                        try {
                            api[options.triggerType].apply(api.context,Array.prototype.slice.call(arguments, 0));
                        }
                        catch (exc) {}
                    }
                }
            };
        }
function _wrapCalls ( options ) { return function ( ) { var api ; options . func . apply ( options . context , Array . prototype . slice . call ( arguments , 0 ) ) ; for ( var i = 0 ; i < externalAPIS . length ; i ++ ) { api = externalAPIS [ i ] ; if ( api [ options . triggerType ] ) { try { api [ options . triggerType ] . apply ( api . context , Array . prototype . slice . call ( arguments , 0 ) ) ; } catch ( exc ) { } } } } ; }
Wraps API calls to trigger other registered functions
@param options
@returns {Function}
@private
Wraps API calls to trigger other registered functions