function findFunctionByName(name, context) {
    var result = Null, baseContext = context, subName, parts;
    if (typeof name === 'string') {
      parts = name.split('.');
      while((subName = parts.shift()) && (context = context[subName])) {
      }
      if (typeof context === 'function' && baseContext === context['baseContext']) {
        result = context;
      }
    }
    return result;
  }
/**
   * Returns the function by name
   *
   * @param {String} name Name of the constructor that will search
   * @param {Object} context Context where it is necessary to find a constructor
   * @return {Function|null} Returns constructor
   */
Returns the function by name
@param {String} name Name of the constructor that will search
@param {Object} context Context where it is necessary to find a constructor
@return {Function|null} Returns constructor
Returns the function by name @param { String } name Name of the constructor that will search @param { Object } context Context where it is necessary to find a constructor @return { Function|null } Returns constructor
function findFunctionByName(name, context) {
    var result = Null, baseContext = context, subName, parts;
    if (typeof name === 'string') {
      parts = name.split('.');
      while((subName = parts.shift()) && (context = context[subName])) {
      }
      if (typeof context === 'function' && baseContext === context['baseContext']) {
        result = context;
      }
    }
    return result;
  }
function findFunctionByName ( name , context ) { var result = Null , baseContext = context , subName , parts ; if ( typeof name === 'string' ) { parts = name . split ( '.' ) ; while ( ( subName = parts . shift ( ) ) && ( context = context [ subName ] ) ) { } if ( typeof context === 'function' && baseContext === context [ 'baseContext' ] ) { result = context ; } } return result ; }
Returns the function by name
 @param {String} name Name of the constructor that will search
 @param {Object} context Context where it is necessary to find a constructor
 @return {Function|null} Returns constructor
Returns the function by name @param { String } name Name of the constructor that will search @param { Object } context Context where it is necessary to find a constructor @return { Function|null } Returns constructor