From 4354dcf8a5cf588a04cb7c120256895f89435850 Mon Sep 17 00:00:00 2001 From: dpapad Date: Wed, 24 Jan 2018 09:42:58 -0800 Subject: [PATCH] Fix parseFloat() call to not throw JS Comp error. --- paper-checkbox.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-checkbox.html b/paper-checkbox.html index 342cb21..221685d 100644 --- a/paper-checkbox.html +++ b/paper-checkbox.html @@ -277,7 +277,7 @@ var checkboxSizeText = this.getComputedStyleValue('--calculated-paper-checkbox-size').trim(); var units = checkboxSizeText.match(/[A-Za-z]+$/)[0] || 'px'; - var checkboxSize = parseFloat(checkboxSizeText, 10); + var checkboxSize = parseFloat(checkboxSizeText); var defaultInkSize = (8 / 3) * checkboxSize; if (units === 'px') {