code: function (event, templatesWrapper) {
              if (event.$DomEvent) {
                  // It's already wrapped
                  return event;
              } else {
                  return templatesWrapper ? new aria.templates.DomEventWrapper(event) : new ariaDomEvent(event);
              }
          }
docs: Wrap a standard HTMLElement inside a DomEvent or DomEventWrapper
  @param {HTMLEvent} event Event to wrap
  @param {Boolean} templatesWrapper True to wrap an aria.templates.DomEventWrapper, False for aria.DomEvent
  @return {aria.DomEvent}