src/aria/core/JsObject.js
function (res, args) {
        var interc = args.interc;
        if (interc.removed) {
            // the interceptor was removed in the mean time, call the original callback directly
            return this.$callback(args.origCb, res);
        }
        var info = args.info;
        info.step = "Callback";
        info.callback = args.origCb;
        info.callbackResult = res;
        info.cancelDefault = false;
        info.returnValue = null;
        this.$callback(interc, info);
        if (info.cancelDefault) {
            return info.returnValue;
        }
        return this.$callback(args.origCb, info.callbackResult);
    }
function (res, args) {
        var interc = args.interc;
        if (interc.removed) {
            // the interceptor was removed in the mean time, call the original callback directly
            return this.$callback(args.origCb, res);
        }
        var info = args.info;
        info.step = "Callback";
        info.callback = args.origCb;
        info.callbackResult = res;
        info.cancelDefault = false;
        info.returnValue = null;
        this.$callback(interc, info);
        if (info.cancelDefault) {
            return info.returnValue;
        }
        return this.$callback(args.origCb, info.callbackResult);
    }
function ( res , args ) { var interc = args . interc ; if ( interc . removed ) { // the interceptor was removed in the mean time, call the original callback directly return this . $callback ( args . origCb , res ) ; } var info = args . info ; info . step = "Callback" ; info . callback = args . origCb ; info . callbackResult = res ; info . cancelDefault = false ; info . returnValue = null ; this . $callback ( interc , info ) ; if ( info . cancelDefault ) { return info . returnValue ; } return this . $callback ( args . origCb , info . callbackResult ) ; }
Callback wrapper.
Callback wrapper .