1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

ash / webui / common / resources / event_target.js [blame]

// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
* @fileoverview Work-around for
* https://github.com/google/closure-compiler/issues/3143, such that WebUI code
* can use the native EventTarget class.
* TODO(dpapad): Remove this entire file if/when that issue is fixed.
*/

/**
 * @constructor
 * @implements {EventTarget}
 */
export const NativeEventTarget = self['EventTarget'];

/** @override */ NativeEventTarget.prototype.addEventListener;
/** @override */ NativeEventTarget.prototype.dispatchEvent;
/** @override */ NativeEventTarget.prototype.removeEventListener;