src/aria/core/JsObject.js
function (interfaceMethods, interceptor, allInterceptors) {
        var interceptedMethods = allInterceptors || {};
        // for a callback, intercept all methods of an interface
        for (var i in interfaceMethods) {
            if (interfaceMethods.hasOwnProperty(i)) {
                (interceptedMethods[i] || (interceptedMethods[i] = [])).push(interceptor);
            }
        }
        return interceptedMethods;
    }
function (interfaceMethods, interceptor, allInterceptors) {
        var interceptedMethods = allInterceptors || {};
        // for a callback, intercept all methods of an interface
        for (var i in interfaceMethods) {
            if (interfaceMethods.hasOwnProperty(i)) {
                (interceptedMethods[i] || (interceptedMethods[i] = [])).push(interceptor);
            }
        }
        return interceptedMethods;
    }
function ( interfaceMethods , interceptor , allInterceptors ) { var interceptedMethods = allInterceptors || { } ; // for a callback, intercept all methods of an interface for ( var i in interfaceMethods ) { if ( interfaceMethods . hasOwnProperty ( i ) ) { ( interceptedMethods [ i ] || ( interceptedMethods [ i ] = [ ] ) ) . push ( interceptor ) ; } } return interceptedMethods ; }
Adds an interceptor to all methods.
@param {Object} interfaceMethods all methods for the interface
@param {aria.core.CfgBeans:Callback} interceptor a callback which will receive notifications
@return {Object} interceptedMethods
Adds an interceptor to all methods .