src/aria/utils/Delegate.js
function (event, templatesWrapper) {
            if (event.$DomEvent) {
                // It's already wrapped
                return event;
            } else {
                return templatesWrapper ? new aria.templates.DomEventWrapper(event) : new ariaDomEvent(event);
            }
        }
function (event, templatesWrapper) {
            if (event.$DomEvent) {
                // It's already wrapped
                return event;
            } else {
                return templatesWrapper ? new aria.templates.DomEventWrapper(event) : new ariaDomEvent(event);
            }
        }
function ( event , templatesWrapper ) { if ( event . $DomEvent ) { // It's already wrapped return event ; } else { return templatesWrapper ? new aria . templates . DomEventWrapper ( event ) : new ariaDomEvent ( event ) ; } }
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}
Wrap a standard HTMLElement inside a DomEvent or DomEventWrapper