Change isNaN to Number.isNaN

This commit is contained in:
Mustafa UZUN 2023-08-03 11:47:29 +03:00
parent f0c25837a3
commit 79d086297c
11 changed files with 11 additions and 11 deletions

View File

@ -5641,7 +5641,7 @@
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -3774,7 +3774,7 @@
var s = l.toLowerCase().split("-"), l = s[0], a = s.slice(1).join("-");
if (l && "h" === a) return c.flipX = !0, c;
if (l && "v" === a) return c.flipY = !0, c;
if (a = parseFloat(a), isNaN(a)) return c;
if (a = parseFloat(a), Number.isNaN(a)) return c;
switch (l) {
case "grow":
c.size = c.size + a;

View File

@ -2785,7 +2785,7 @@
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -1239,7 +1239,7 @@
var a = t.toLowerCase().split("-"), t = a[0], e = a.slice(1).join("-");
if (t && "h" === e) return n.flipX = !0, n;
if (t && "v" === e) return n.flipY = !0, n;
if (e = parseFloat(e), isNaN(e)) return n;
if (e = parseFloat(e), Number.isNaN(e)) return n;
switch (t) {
case "grow":
n.size = n.size + e;

View File

@ -2735,7 +2735,7 @@
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -2724,7 +2724,7 @@ var parseTransformString = function parseTransformString(transformString) {
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -2724,7 +2724,7 @@ var parseTransformString = function parseTransformString(transformString) {
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -5641,7 +5641,7 @@
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

2
js/all.min.js vendored
View File

@ -3774,7 +3774,7 @@
var s = l.toLowerCase().split("-"), l = s[0], a = s.slice(1).join("-");
if (l && "h" === a) return c.flipX = !0, c;
if (l && "v" === a) return c.flipY = !0, c;
if (a = parseFloat(a), isNaN(a)) return c;
if (a = parseFloat(a), Number.isNaN(a)) return c;
switch (l) {
case "grow":
c.size = c.size + a;

View File

@ -2785,7 +2785,7 @@
rest = parseFloat(rest);
if (isNaN(rest)) {
if (Number.isNaN(rest)) {
return acc;
}

View File

@ -1239,7 +1239,7 @@
var a = t.toLowerCase().split("-"), t = a[0], e = a.slice(1).join("-");
if (t && "h" === e) return n.flipX = !0, n;
if (t && "v" === e) return n.flipY = !0, n;
if (e = parseFloat(e), isNaN(e)) return n;
if (e = parseFloat(e), Number.isNaN(e)) return n;
switch (t) {
case "grow":
n.size = n.size + e;