feat: remove MapWrapper.contains().
This commit is contained in:
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user