diff options
| author | Caitlin Potter | 2013-12-18 23:52:31 -0500 | 
|---|---|---|
| committer | Igor Minar | 2013-12-19 00:59:22 -0800 | 
| commit | 26d43cacdc106765bd928d41600352198f887aef (patch) | |
| tree | d2dcaffd0b6fa1b020102921ee49226c8c849b7f /test/ng/compileSpec.js | |
| parent | 4f5758e6669222369889c9e789601d25ff885530 (diff) | |
| download | angular.js-26d43cacdc106765bd928d41600352198f887aef.tar.bz2 | |
fix($parse): return 'undefined' if a middle key's value is null
Prior to this fix, $parse/$eval would return 'null' if a middle key in
an expression's value is null, when it should be expected to be undefined.
This patch tries to remedy this by returning undefined for middle values in
expressions, when fetching a child of that null value.
For example:
```js
// Given the following object:
$scope.a = {
  b: null
};
// $scope.$eval('a.b.c') returns undefined, whereas previously it would return null
```
Closes #5480
Diffstat (limited to 'test/ng/compileSpec.js')
0 files changed, 0 insertions, 0 deletions
