}
var pstyle = false;
if (dom.nodeName != 'BODY') {
- pstyle = window.getComputedStyle(dom.parentNode, null);
+ pstyle = window.getComputedStyle(dom.parentElement, null);
}
- var style = window.getComputedStyle(dom, null);
-
+
for(var i=0;i<keys.length;i++){
var prop = keys[i];
//returns[camel] = val;
// idea... if the parent has the same style.. then do not apply it to the child?
- if (dom.nodeName != 'BODY' && dom.parentNode.style[prop] == val) {
+ if (pstyle && pstyle[prop] == val) {
continue;
}