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
+1 -1
View File
@@ -53,7 +53,7 @@ export class Headers {
get(header: string): string { return ListWrapper.first(this._headersMap.get(header)); }
has(header: string) { return MapWrapper.contains(this._headersMap, header); }
has(header: string) { return this._headersMap.has(header); }
keys() { return MapWrapper.keys(this._headersMap); }
@@ -19,7 +19,7 @@ export class URLSearchParams {
paramsMap: Map<string, List<string>>;
constructor(public rawParams: string) { this.paramsMap = paramParser(rawParams); }
has(param: string): boolean { return MapWrapper.contains(this.paramsMap, param); }
has(param: string): boolean { return this.paramsMap.has(param); }
get(param: string): string { return ListWrapper.first(this.paramsMap.get(param)); }