src/eva.js
function createDelegateMethod(delegate, sMethod, settings) {
    var result = function() {
        return delegate[sMethod].apply(delegate, arguments);
    };
    if (settings && settings.destination) {
        settings.destination[settings.destinationMethod || sMethod] = result;
    }
    return result;
}
function createDelegateMethod(delegate, sMethod, settings) {
    var result = function() {
        return delegate[sMethod].apply(delegate, arguments);
    };
    if (settings && settings.destination) {
        settings.destination[settings.destinationMethod || sMethod] = result;
    }
    return result;
}
function createDelegateMethod ( delegate , sMethod , settings ) { var result = function ( ) { return delegate [ sMethod ] . apply ( delegate , arguments ) ; } ; if ( settings && settings . destination ) { settings . destination [ settings . destinationMethod || sMethod ] = result ; } return result ; }
Create function that executes specified method of the given object.

@param {Object} delegate
Object whose method will be executed when created function is called.
@param {String} sMethod
Name of method that will be executed.
@param {Object} [settings]
Operation settings. Keys are settings names, values are corresponding settings values.
The following settings are supported:

* `destination`: `Object` - target object into which the method will be added that should be used
to access the created function
* `destinationMethod`: `String` - name of method of the target object that will be used to access
the created function; the value of `sMethod` parameter by default
@return {Function}
Created function.
@alias module:eva.createDelegateMethod
Create function that executes specified method of the given object .