src/aria/core/JsObject.js
function (cb) {
                var scope = cb.scope, callback;
                scope = scope ? scope : this;
                if (!cb.fn) {
                    callback = cb;
                } else {
                    callback = cb.fn;
                }

                if (typeof(callback) == 'string') {
                    callback = scope[callback];
                }
                return {
                    fn : callback,
                    scope : scope,
                    args : cb.args,
                    resIndex : cb.resIndex,
                    apply : cb.apply
                };
            }
function (cb) {
                var scope = cb.scope, callback;
                scope = scope ? scope : this;
                if (!cb.fn) {
                    callback = cb;
                } else {
                    callback = cb.fn;
                }

                if (typeof(callback) == 'string') {
                    callback = scope[callback];
                }
                return {
                    fn : callback,
                    scope : scope,
                    args : cb.args,
                    resIndex : cb.resIndex,
                    apply : cb.apply
                };
            }
function ( cb ) { var scope = cb . scope , callback ; scope = scope ? scope : this ; if ( ! cb . fn ) { callback = cb ; } else { callback = cb . fn ; } if ( typeof ( callback ) == 'string' ) { callback = scope [ callback ] ; } return { fn : callback , scope : scope , args : cb . args , resIndex : cb . resIndex , apply : cb . apply } ; }
Gets a proper signature callback from description given in argument
@param {Object|String} cn callback signature
@return {Object} callback object with fn and scope
Gets a proper signature callback from description given in argument