Hotfix for IE & Firefox bug

master
Ivan Malagon 7 years ago committed by GitHub
parent 085cd7abdd
commit 7e39eb3d68

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

Loading…
Cancel
Save