Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a7bcc01

Browse files
romkorgkalpak
authored andcommitted
refactor(input[number]): remove redandant second argument to parseFloat()
Closes #14793
1 parent 40ed809 commit a7bcc01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/directive/input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
14111411

14121412
attr.$observe('min', function(val) {
14131413
if (isDefined(val) && !isNumber(val)) {
1414-
val = parseFloat(val, 10);
1414+
val = parseFloat(val);
14151415
}
14161416
minVal = isNumber(val) && !isNaN(val) ? val : undefined;
14171417
// TODO(matsko): implement validateLater to reduce number of validations
@@ -1427,7 +1427,7 @@ function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
14271427

14281428
attr.$observe('max', function(val) {
14291429
if (isDefined(val) && !isNumber(val)) {
1430-
val = parseFloat(val, 10);
1430+
val = parseFloat(val);
14311431
}
14321432
maxVal = isNumber(val) && !isNaN(val) ? val : undefined;
14331433
// TODO(matsko): implement validateLater to reduce number of validations

0 commit comments

Comments
 (0)