function mapMethodOntoDuun( duunObject, pluginObject, methodName, methodFunction ) {
  if ( duunObject.hasOwnProperty( methodName ) ) {
    throw new Error( 'The method "' + methodName + '" has already been registered and cannot be overridden!' );
  }
  if ( typeof methodFunction !== 'function' ) {
    // silently skip any non-function properties! :P
    return;
  }
  duunObject[ methodName ] = generateProxyMethod( pluginObject, methodFunction );
}
/**
 * Proxies onto a Duun a given (plugin) method, either by name or reference.
 * @arg  {Duun}  duunObject
 * @arg  {Object}  pluginObject
 * @arg  {String}  methodName
 * @arg  {Function}  methodFunction
 * @void
 */
Proxies onto a Duun a given (plugin) method, either by name or reference.
Proxies onto a Duun a given ( plugin ) method either by name or reference .
function mapMethodOntoDuun( duunObject, pluginObject, methodName, methodFunction ) {
  if ( duunObject.hasOwnProperty( methodName ) ) {
    throw new Error( 'The method "' + methodName + '" has already been registered and cannot be overridden!' );
  }
  if ( typeof methodFunction !== 'function' ) {
    return;
  }
  duunObject[ methodName ] = generateProxyMethod( pluginObject, methodFunction );
}
function mapMethodOntoDuun ( duunObject , pluginObject , methodName , methodFunction ) { if ( duunObject . hasOwnProperty ( methodName ) ) { throw new Error ( 'The method "' + methodName + '" has already been registered and cannot be overridden!' ) ; } if ( typeof methodFunction !== 'function' ) { return ; } duunObject [ methodName ] = generateProxyMethod ( pluginObject , methodFunction ) ; }
Proxies onto a Duun a given (plugin) method, either by name or reference.
Proxies onto a Duun a given ( plugin ) method either by name or reference .
// silently skip any non-function properties! :P