From 8c457867598b08823b4f8cb20fd442a6513c426e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 26 Mar 2014 16:58:43 +0100 Subject: [PATCH] Fix a regression in Style#fontSize. Closes #432. --- src/style/Style.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style/Style.js b/src/style/Style.js index cffee723..33a08d48 100644 --- a/src/style/Style.js +++ b/src/style/Style.js @@ -288,11 +288,11 @@ var Style = Base.extend(new function() { // To prevent an obscure iOS 7 crash, we have to convert the size to a // string first before passing it to the regular expression. // The following nonsensical statement would also prevent the bug, - // prooving that the issue is not the regular expression itself, but + // proving that the issue is not the regular expression itself, but // something deeper down in the optimizer: // `if (size === 0) size = 0;` return this.getFontWeight() - + ' ' + fontSize + (/\w/i.test(fontSize + '') ? ' ' : 'px ') + + ' ' + fontSize + (/\[a-z]/i.test(fontSize + '') ? ' ' : 'px ') + this.getFontFamily(); },