inliner.js
authorAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:29:12 +0000 (13:29 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 Nov 2015 05:29:12 +0000 (13:29 +0800)
inliner.js

index 6a656bd..c2c9a41 100644 (file)
@@ -17,6 +17,7 @@
         style = window.getComputedStyle(dom, null);
         if (style.display == 'none') {
             dom.parentElement.removeChild(dom);
+            return;
         }
         
         for(var i=0;i<style.length;i++){
             //returns[camel] = val;
             dom.style[prop] = val;
         }
+        for (var i = dom.childNodes.length -1; i--; i> -1) {
+            fillStyle(dom.childNodes)
+        }
+        
+        
         //return returns;
     }
     var el = document.querySelector('body');