refactor(ListWrapper): drop filter, find, reduce & any

Closes #5152
This commit is contained in:
Victor Berchet
2015-10-09 09:07:58 -07:00
parent e667ad3e6b
commit 0dcca1a28e
30 changed files with 66 additions and 98 deletions
@@ -70,9 +70,9 @@ export abstract class DebugElement {
* @return {DebugElement[]}
*/
queryAll(predicate: Predicate<DebugElement>, scope: Function = Scope.all): DebugElement[] {
var elementsInScope = scope(this);
var elementsInScope: any[] = scope(this);
return ListWrapper.filter(elementsInScope, predicate);
return elementsInScope.filter(predicate);
}
}