refactor(EventManager): remove ListWrapper (#11363)

This commit is contained in:
PatrickJS 2016-09-06 11:23:00 -07:00 committed by Martin Probst
parent ee88c3c976
commit 7192fec841
1 changed files with 1 additions and 4 deletions

View File

@ -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 {