Skip to content

Commit

Permalink
fix(TranslateParser): fixed params error due to exporting util methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Dec 5, 2016
1 parent a209ad2 commit e3f1fb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class TranslateModule {
providers: [
providedLoader,
TranslateService,
{ provide: TranslateParser, useClass: DefaultTranslateParser },
{ provide: TranslateParser, useClass: DefaultTranslateParser }
]
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit e3f1fb5

Please sign in to comment.