From 7e39eb3d689f6849f18943cf271fd96fc59dbdc0 Mon Sep 17 00:00:00 2001 From: Ivan Malagon Date: Thu, 7 Sep 2017 19:10:54 +0200 Subject: [PATCH] Hotfix for IE & Firefox bug --- src/js/lib/dom.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/lib/dom.js b/src/js/lib/dom.js index b929a17..076cfaa 100644 --- a/src/js/lib/dom.js +++ b/src/js/lib/dom.js @@ -14,7 +14,10 @@ DOM.appendTo = function (child, parent) { }; function cssGet(element, styleName) { - return window.getComputedStyle(element)[styleName]; + var style = window.getComputedStyle(element); + return style + ? style[styleName] + : null; } function cssSet(element, styleName, styleValue) {