File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ function setupModelWatcher(ctrl) {
11641164 modelValue !== ctrl . $modelValue &&
11651165 // checks for NaN is needed to allow setting the model to NaN when there's an asyncValidator
11661166
1167- ( ! ! ctrl . $modelValue || ! ! modelValue )
1167+ ( ! Number . isNaN ( ctrl . $modelValue ) || ! Number . isNaN ( modelValue ) )
11681168 ) {
11691169 ctrl . $$setModelValue ( modelValue ) ;
11701170 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function limitToFilter() {
3333 if ( ! isArrayLike ( input ) ) return input ;
3434
3535 begin =
36- ! begin || isNaN ( /** @type {any } */ ( begin ) )
36+ ! begin || Number . isNaN ( /** @type {any } */ ( begin ) )
3737 ? 0
3838 : parseInt ( /** @type {string } */ ( begin ) , 10 ) ;
3939 begin =
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export function equals(o1, o2) {
55
66 if ( o1 === null || o2 === null ) return false ;
77
8- if ( isNaN ( o1 ) && isNaN ( o2 ) ) return true ; // NaN === NaN
8+ if ( Number . isNaN ( o1 ) && Number . isNaN ( o2 ) ) return true ; // NaN === NaN
99 const t1 = typeof o1 ,
1010 t2 = typeof o2 ;
1111
You can’t perform that action at this time.
0 commit comments