src/aria/utils/Function.js
function (src, dest, fnNames, prefix) {
            if (!prefix) {
                prefix = '';
            }
            for (var index = 0, l = fnNames.length; index < l; index++) {
                var key = fnNames[index];
                dest[prefix + key] = this.bind(src[key], src);
            }
        }
function (src, dest, fnNames, prefix) {
            if (!prefix) {
                prefix = '';
            }
            for (var index = 0, l = fnNames.length; index < l; index++) {
                var key = fnNames[index];
                dest[prefix + key] = this.bind(src[key], src);
            }
        }
function ( src , dest , fnNames , prefix ) { if ( ! prefix ) { prefix = '' ; } for ( var index = 0 , l = fnNames . length ; index < l ; index ++ ) { var key = fnNames [ index ] ; dest [ prefix + key ] = this . bind ( src [ key ] , src ) ; } }
Put on destination object functions from source object, keeping the source object as scope for these
functions
@param {Object} src source object
@param {Object} dest destination object
@param {Array} fnNames list of function names
@param {String} optional string prefix for functions on the target object
Put on destination object functions from source object keeping the source object as scope for these functions