Skip to content

Commit

Permalink
Merge pull request #140 from brosenberger/issue87_fix
Browse files Browse the repository at this point in the history
fix(TranslateParser): target undefined for missing translation
Fixes #87
  • Loading branch information
ocombe authored Jun 22, 2016
2 parents 7c56276 + c46f690 commit e96d9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class Parser {
key = '';
do {
key += keys.shift();
if (target[key] !== undefined && (typeof target[key] === 'object' || !keys.length)) {
if (target!==undefined && target[key] !== undefined && (typeof target[key] === 'object' || !keys.length)) {
target = target[key];
key = '';
} else if (!keys.length) {
Expand Down

0 comments on commit e96d9a5

Please sign in to comment.