code: function(type, options) {
      var event = new Base(type, options);
      event.__composed = options && Boolean(options.composed);
      return event;
    }
docs: NOTE: avoiding use of `class` here so that transpiled output does not try to do `Base.call` with a dom construtor.