diff --git a/index.ts b/index.ts index 6ebf5069..2a082381 100644 --- a/index.ts +++ b/index.ts @@ -37,7 +37,7 @@ export class TranslateModule { providers: [ providedLoader, TranslateService, - { provide: TranslateParser, useClass: DefaultTranslateParser }, + { provide: TranslateParser, useClass: DefaultTranslateParser } ] }; } diff --git a/src/util.ts b/src/util.ts index 3f763576..55da72b6 100644 --- a/src/util.ts +++ b/src/util.ts @@ -25,7 +25,7 @@ export function equals(o1: any, o2: any): boolean { if(!Array.isArray(o2)) return false; if((length = o1.length) == o2.length) { for(key = 0; key < length; key++) { - if(!this.equals(o1[key], o2[key])) return false; + if(!equals(o1[key], o2[key])) return false; } return true; } @@ -35,7 +35,7 @@ export function equals(o1: any, o2: any): boolean { } keySet = Object.create(null); for(key in o1) { - if(!this.equals(o1[key], o2[key])) { + if(!equals(o1[key], o2[key])) { return false; } keySet[key] = true;