refactor(EventManager): remove ListWrapper (#11363)
This commit is contained in:
parent
ee88c3c976
commit
7192fec841
|
@ -8,9 +8,6 @@
|
||||||
|
|
||||||
import {Inject, Injectable, NgZone, OpaqueToken} from '@angular/core';
|
import {Inject, Injectable, NgZone, OpaqueToken} from '@angular/core';
|
||||||
|
|
||||||
import {ListWrapper} from '../../facade/collection';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @stable
|
* @stable
|
||||||
|
@ -26,7 +23,7 @@ export class EventManager {
|
||||||
|
|
||||||
constructor(@Inject(EVENT_MANAGER_PLUGINS) plugins: EventManagerPlugin[], private _zone: NgZone) {
|
constructor(@Inject(EVENT_MANAGER_PLUGINS) plugins: EventManagerPlugin[], private _zone: NgZone) {
|
||||||
plugins.forEach(p => p.manager = this);
|
plugins.forEach(p => p.manager = this);
|
||||||
this._plugins = ListWrapper.reversed(plugins);
|
this._plugins = plugins.slice().reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {
|
||||||
|
|
Loading…
Reference in New Issue