aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget/input.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-15 11:19:37 -0800
committerMisko Hevery2011-11-15 11:47:23 -0800
commitaba9bb2a241f832d1b09d75e05973a985b817cc1 (patch)
tree6ddb913280963ce1737d8811d786f82083436344 /src/widget/input.js
parent5857c44e0cc52309251c932f9c530958dfdb616c (diff)
downloadangular.js-aba9bb2a241f832d1b09d75e05973a985b817cc1.tar.bz2
fix(input): treat all not number model as blank
Diffstat (limited to 'src/widget/input.js')
-rw-r--r--src/widget/input.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widget/input.js b/src/widget/input.js
index fb4cc0d4..3f25f09f 100644
--- a/src/widget/input.js
+++ b/src/widget/input.js
@@ -594,9 +594,9 @@ function numericRegexpInputType(regexp, error) {
};
widget.$parseModel = function() {
- if (isNumber(widget.$modelValue)) {
- widget.$viewValue = '' + widget.$modelValue;
- }
+ widget.$viewValue = isNumber(widget.$modelValue)
+ ? '' + widget.$modelValue
+ : '';
};
}];
}