diff options
| author | Misko Hevery | 2010-10-13 10:51:16 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-13 10:51:16 -0700 | 
| commit | 3ab49538a414a36c97ed3735c2473eefcf7be073 (patch) | |
| tree | 444810c3098d39a3867d728aec86249b1ea32506 /src/directives.js | |
| parent | 2cb9497d02afdcfc19ea52fddcd6d1f04d81ffdb (diff) | |
| download | angular.js-3ab49538a414a36c97ed3735c2473eefcf7be073.tar.bz2 | |
fixed issue where ng:bind would not reset value if expression returned undefined
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directives.js b/src/directives.js index 425685f3..c3d732a2 100644 --- a/src/directives.js +++ b/src/directives.js @@ -50,7 +50,7 @@ angularDirective("ng:bind", function(expression){            element.html('');            element.append(value);          } else { -          element.text(value); +          element.text(value === _undefined ? '' : value);          }        }      }, element);  | 
