File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ See [contributing guide](.github/CONTRIBUTING.md)
136
136
137
137
| Date | Version | Description |
138
138
| ----------- | ------- | ----------- |
139
- | 2018-02-12 | v1.1.0 | Add support for step validations using big.js for more accurate calculations |
139
+ | 2018-02-12 | v1.1.2 | Add support for step validations using big.js for more accurate calculations |
140
140
| 2018-02-01 | v1.0.38 | Link function of the provided service will only be called once to prevent memory leaks |
141
141
| 2016-07-11 | v0.0.27 | Service can now provide min/max/step values and template values override service values |
142
142
| 2016-06-14 | v0.0.22 | Published via NPM (in addition to bower) |
Original file line number Diff line number Diff line change 450
450
* @returns {Boolean } true if valid
451
451
*/
452
452
ngModelCtrl . $validators . step = function ( modelValue ) {
453
- return ( step === undefined || isNaN ( modelValue ) || isNaN ( step ) || validateStep ( modelValue , step ) ) ;
453
+ return ( typeof modelValue !== 'number' || typeof step !== 'number' || isNaN ( modelValue ) || isNaN ( step ) || validateStep ( modelValue , step ) ) ;
454
454
} ;
455
455
456
456
/**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-number-input" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"description" : " AngularJS number input directive." ,
5
5
"authors" : [
6
6
" Sagie Gur-Ari <sagiegurari@gmail.com>"
Original file line number Diff line number Diff line change 1
1
| Date | Version | Description |
2
2
| ----------- | ------- | ----------- |
3
- | 2018-02-12 | v1.1.0 | Add support for step validations using big.js for more accurate calculations |
3
+ | 2018-02-12 | v1.1.2 | Add support for step validations using big.js for more accurate calculations |
4
4
| 2018-02-01 | v1.0.38 | Link function of the provided service will only be called once to prevent memory leaks |
5
5
| 2016-07-11 | v0.0.27 | Service can now provide min/max/step values and template values override service values |
6
6
| 2016-06-14 | v0.0.22 | Published via NPM (in addition to bower) |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular-number-input" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"description" : " AngularJS number input directive." ,
5
5
"author" : {
6
6
"name" : " Sagie Gur-Ari" ,
You can’t perform that action at this time.
0 commit comments