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