Hotfix for IE & Firefox bug
This commit is contained in:
parent
085cd7abdd
commit
7e39eb3d68
@ -14,7 +14,10 @@ DOM.appendTo = function (child, parent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function cssGet(element, styleName) {
|
function cssGet(element, styleName) {
|
||||||
return window.getComputedStyle(element)[styleName];
|
var style = window.getComputedStyle(element);
|
||||||
|
return style
|
||||||
|
? style[styleName]
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function cssSet(element, styleName, styleValue) {
|
function cssSet(element, styleName, styleValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user