From 7ea3cb945cfbfd29530024bd32c188a6f91ccfee Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 17 May 2017 08:27:01 -0700 Subject: [PATCH] fix(closure-compiler): use Number to cast parseInt requires two arguments within Google (the second is the radix) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt: "Always specify this parameter" Casting with Number('1') is better. --- src/lib/utils/auto-prefixer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/auto-prefixer.ts b/src/lib/utils/auto-prefixer.ts index e8a22fcf2..54f47db02 100644 --- a/src/lib/utils/auto-prefixer.ts +++ b/src/lib/utils/auto-prefixer.ts @@ -143,6 +143,6 @@ export function toBoxDirection(flexDirection = 'row') { /** Convert flex order to Box ordinal group */ export function toBoxOrdinal(order = '0') { - let value = order ? parseInt(order) + 1 : 1; + let value = order ? Number(order) + 1 : 1; return isNaN(value) ? "0" : value.toString(); }