src/base/events.js
function freezeAll(exceptions) {
  _freezeAllEvents = true;
  if (!exceptions) {
    return;
  }
  if (!utils.isArray(exceptions)) {
    exceptions = [exceptions];
  }
  utils.forEach(exceptions, e => {
    _freezeAllExceptions[e] = true;
  });
}
function freezeAll(exceptions) {
  _freezeAllEvents = true;
  if (!exceptions) {
    return;
  }
  if (!utils.isArray(exceptions)) {
    exceptions = [exceptions];
  }
  utils.forEach(exceptions, e => {
    _freezeAllExceptions[e] = true;
  });
}
function freezeAll ( exceptions ) { _freezeAllEvents = true ; if ( ! exceptions ) { return ; } if ( ! utils . isArray ( exceptions ) ) { exceptions = [ exceptions ] ; } utils . forEach ( exceptions , e => { _freezeAllExceptions [ e ] = true ; } ) ; }
generic event functions 
freezes all events
generic event functions freezes all events