aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget/input.js
diff options
context:
space:
mode:
authorVojta Jina2012-02-25 22:38:18 -0800
committerVojta Jina2012-02-28 18:22:41 -0800
commite7d610681114d278b2127757c1d1a65981bc4dc1 (patch)
treefb1187190a249bb79f95c6bd4a9f2c924521bc25 /src/widget/input.js
parentc4c60c25b494afe282dd1a86a030fbc2c63639aa (diff)
downloadangular.js-e7d610681114d278b2127757c1d1a65981bc4dc1.tar.bz2
fix(input): Render 0 (number) as 0 (not empty string)
Diffstat (limited to 'src/widget/input.js')
-rw-r--r--src/widget/input.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/input.js b/src/widget/input.js
index 854f8b06..5268f1a7 100644
--- a/src/widget/input.js
+++ b/src/widget/input.js
@@ -382,7 +382,7 @@ function textInputType(scope, element, attr, ctrl) {
});
ctrl.render = function() {
- element.val(ctrl.viewValue || '');
+ element.val(isEmpty(ctrl.viewValue) ? '' : ctrl.viewValue);
};
// pattern validator