src/aria/core/JsObject.js
function (interfaceMethods, interceptor, allInterceptors) {
        var interceptedMethods = allInterceptors || {};
        // for a class object, intercept specific methods
        for (var m in interfaceMethods) {
            if (interfaceMethods.hasOwnProperty(m) && __hasBeenIntercepted(m, interceptor)) {
                (interceptedMethods[m] || (interceptedMethods[m] = [])).push({
                    fn : __callInterceptorMethod,
                    scope : interceptor
                });
            }
        }
        return interceptedMethods;
    }
function (interfaceMethods, interceptor, allInterceptors) {
        var interceptedMethods = allInterceptors || {};
        // for a class object, intercept specific methods
        for (var m in interfaceMethods) {
            if (interfaceMethods.hasOwnProperty(m) && __hasBeenIntercepted(m, interceptor)) {
                (interceptedMethods[m] || (interceptedMethods[m] = [])).push({
                    fn : __callInterceptorMethod,
                    scope : interceptor
                });
            }
        }
        return interceptedMethods;
    }
function ( interfaceMethods , interceptor , allInterceptors ) { var interceptedMethods = allInterceptors || { } ; // for a class object, intercept specific methods for ( var m in interfaceMethods ) { if ( interfaceMethods . hasOwnProperty ( m ) && __hasBeenIntercepted ( m , interceptor ) ) { ( interceptedMethods [ m ] || ( interceptedMethods [ m ] = [ ] ) ) . push ( { fn : __callInterceptorMethod , scope : interceptor } ) ; } } return interceptedMethods ; }
Targets specific methods to be intercepted.
@param {Object} interfaceMethods all methods for the interface
@param {Object} interceptor an object/class which will receive notifications
@return {Object} interceptedMethods
Targets specific methods to be intercepted .