fix(facade): workaround for lack of Symbol.iterator in es6-shim

Closes #4219
Fixes #4216
This commit is contained in:
Marc Laval
2015-09-17 00:35:59 +02:00
parent e166f6fe95
commit 390aacd442
4 changed files with 37 additions and 6 deletions

View File

@ -1,4 +1,6 @@
import {ListWrapper, MapWrapper} from 'angular2/src/core/facade/collection';
import {getSymbolIterator} from 'angular2/src/core/facade/lang';
/**
* An iterable and observable live list of components in the DOM.
@ -101,7 +103,7 @@ export class QueryList<T> {
map<U>(fn: (item: T) => U): U[] { return this._results.map(fn); }
[Symbol.iterator](): any { return this._results[Symbol.iterator](); }
[getSymbolIterator()](): any { return this._results[getSymbolIterator()](); }
// Internal to the framework.
fireCallbacks(): void {