UNPKG

@kwiz/fluentui

Version:
22 lines 714 B
export class CustomEventTargetBase { constructor() { try { this._et = new EventTarget(); } catch (error) { // Using document as EventTarget to support iOS 13 and older. // Because EventTarget constructor just exists at iOS 14 and later. this._et = document; } } addEventListener(type, listener, options) { this._et.addEventListener(type, listener, options); } dispatchEvent(event) { return this._et.dispatchEvent(event); } removeEventListener(type, callback, options) { this._et.removeEventListener(type, callback, options); } } //# sourceMappingURL=CustomEventTargetBase.js.map