From 79bd665b92566cc1c9298578d84eae2368ddcd81 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 24 Jun 2012 13:44:08 +0100 Subject: [PATCH] Removed document.all to check for .rules instead Used more appropriate feature detection --- lib/coder.js | 3 ++- lib/settings-screen.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/coder.js b/lib/coder.js index 762fc53..e65994a 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -1526,7 +1526,8 @@ var ICEcoder = { } console.log('TO FIX'); - //document.all ? strCSS = 'rules' : strCSS = 'cssRules'; + //cMCSS = ICEcoder.content.contentWindow.document; + //cMCSS.styleSheets[2].rules ? strCSS = 'rules' : strCSS = 'cssRules'; //document.settings.visibleTabs.checked ? document.styleSheets[2][strCSS][5].style['content'] = '"\\21e5"' : document.styleSheets[2][strCSS][5].style['content'] = '" "'; diff --git a/lib/settings-screen.php b/lib/settings-screen.php index 2b2f162..ec58bbc 100644 --- a/lib/settings-screen.php +++ b/lib/settings-screen.php @@ -184,7 +184,8 @@ var showButton = function() { var showHideTabs = function() { console.log('TO FIX'); - //document.all ? strCSS = 'rules' : strCSS = 'cssRules'; + //cMCSS = ICEcoder.content.contentWindow.document; + //cMCSS.styleSheets[2].rules ? strCSS = 'rules' : strCSS = 'cssRules'; //document.settings.visibleTabs.checked ? document.styleSheets[2][strCSS][5].style['content'] = '"\\21e5"' : document.styleSheets[2][strCSS][5].style['content'] = '" "'; }