Skip to content

Commit

Permalink
fix(test): do not set ng.probe when ng is null or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
marclaval committed Sep 15, 2015
1 parent abc4ef3 commit df7f59b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/angular2/src/core/facade/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,5 +342,8 @@ export function setValueOnPath(global: any, path: string, value: any) {
obj = obj[name] = {};
}
}
if (obj === undefined || obj === null) {
obj = {};
}
obj[parts.shift()] = value;
}

0 comments on commit df7f59b

Please sign in to comment.