Hotfix for IE & Firefox bug

This commit is contained in:
Ivan Malagon
2017-09-07 19:10:54 +02:00
committed by GitHub
parent 085cd7abdd
commit 7e39eb3d68

View File

@@ -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) {