From 593cbc5f193c86e6dc2b88e08eaf6b62f499642e Mon Sep 17 00:00:00 2001 From: Craig Oldford Date: Fri, 13 Sep 2013 13:53:40 -0300 Subject: [PATCH] Fixed a bug where plotting a chart crashes if the placeholder doesn't have a font size --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index 2855d2e..684b207 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -737,7 +737,7 @@ Licensed under the MIT license. var i, axisOptions, axisCount, fontDefaults = { style: placeholder.css("font-style"), - size: Math.round(0.8 * (+placeholder.css("font-size").replace("px", "") || 13)), + size: Math.round(0.8 * (placeholder.css("font-size") ? +placeholder.css('font-size').replace("px", "") : 13)), variant: placeholder.css("font-variant"), weight: placeholder.css("font-weight"), family: placeholder.css("font-family")