ux/ieconsole.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 05:04:18 +0000 (13:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 4 Aug 2011 05:04:18 +0000 (13:04 +0800)
ux/ieconsole.js

index 2a9e398..8b78198 100644 (file)
@@ -17,10 +17,10 @@ if(!window.console){
                 console.d.id=id;
             }
             console.hide();
-            
-            document.body.appendChild(
-                document.createElement('style')
-            ).appendChild(document.createTextNode('' + 
+            var st = document.createElement('style');
+            document.body.appendChild(st);
+                
+            st.appendChild(document.createTextNode('' + 
                 '#fauxconsole{' +
                 '    position:absolute;' +
                 '    top:0;'+