feat: remove MapWrapper.contains().

This commit is contained in:
Martin Probst
2015-06-17 21:42:56 -07:00
parent be7ac9fd41
commit dfd30910aa
18 changed files with 28 additions and 30 deletions

View File

@ -90,7 +90,7 @@ export class RouteRecognizer {
return solutions;
}
hasRoute(name: string): boolean { return MapWrapper.contains(this.names, name); }
hasRoute(name: string): boolean { return this.names.has(name); }
generate(name: string, params: any): string {
var pathRecognizer = this.names.get(name);

View File

@ -69,7 +69,7 @@ export class RouteRegistry {
// Don't read the annotations from a type more than once
// this prevents an infinite loop if a component routes recursively.
if (MapWrapper.contains(this._rules, component)) {
if (this._rules.has(component)) {
return;
}
var annotations = reflector.annotations(component);