From 049259cc090b2c52b29ee58cc38a6e83170c3f18 Mon Sep 17 00:00:00 2001 From: asturur Date: Sun, 22 Jun 2014 20:51:04 +0200 Subject: [PATCH] style parsing fix code style should be ok this time --- src/parser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser.js b/src/parser.js index 1689e7fa..3645cf8f 100644 --- a/src/parser.js +++ b/src/parser.js @@ -354,7 +354,9 @@ if (ruleMatchesElement) { for (var property in fabric.cssRules[rule]) { - styles[property] = fabric.cssRules[rule][property]; + var attr = normalizeAttr(property); + var value = normalizeValue(attr, fabric.cssRules[rule][property]); + styles[attr] = value; } } }