function getEventTargetByOldLogic(oldName) {
  var targetKeyReg = new RegExp('^(c|w)_');
  var matches = oldName.match(targetKeyReg);
  if (matches) {
    var _name = oldName.replace(targetKeyReg, '');
    var _target = oldName.indexOf('c') === 0 ? 'container' : 'wrapper';
    /* istanbul ignore else  */
    if (process.env.NODE_ENV !== 'production') {
      chimeeHelper.Log.warn('We no longer support event names like ' + oldName + '. Please use ' + _name + ' and options like { target: \'' + _target + '\' } instead');
    }
    return { name: _name, target: _target };
  } else if (oldName === 'error') {
    return { name: 'error', target: 'kernel' };
  }
  return false;
}
function getEventTargetByOldLogic(oldName) {
  var targetKeyReg = new RegExp('^(c|w)_');
  var matches = oldName.match(targetKeyReg);
  if (matches) {
    var _name = oldName.replace(targetKeyReg, '');
    var _target = oldName.indexOf('c') === 0 ? 'container' : 'wrapper';
    
    if (process.env.NODE_ENV !== 'production') {
      chimeeHelper.Log.warn('We no longer support event names like ' + oldName + '. Please use ' + _name + ' and options like { target: \'' + _target + '\' } instead');
    }
    return { name: _name, target: _target };
  } else if (oldName === 'error') {
    return { name: 'error', target: 'kernel' };
  }
  return false;
}
function getEventTargetByOldLogic ( oldName ) { var targetKeyReg = new RegExp ( '^(c|w)_' ) ; var matches = oldName . match ( targetKeyReg ) ; if ( matches ) { var _name = oldName . replace ( targetKeyReg , '' ) ; var _target = oldName . indexOf ( 'c' ) === 0 ? 'container' : 'wrapper' ; /* istanbul ignore else  */ if ( process . env . NODE_ENV !== 'production' ) { chimeeHelper . Log . warn ( 'We no longer support event names like ' + oldName + '. Please use ' + _name + ' and options like { target: \'' + _target + '\' } instead' ) ; } return { name : _name , target : _target } ; } else if ( oldName === 'error' ) { return { name : 'error' , target : 'kernel' } ; } return false ; }
In logic before 0.10.0, we use 'c_' and 'w_' to mark event of container and wrapper
we need to keep that logic work until next major version.
@param {string} name 事件名字
In logic before 0 . 10 . 0 we use c_ and w_ to mark event of container and wrapper we need to keep that logic work until next major version .