Removed document.all to check for .rules instead

Used more appropriate feature detection
This commit is contained in:
Matt Pass
2012-06-24 13:44:08 +01:00
parent 0de026fc2b
commit 79bd665b92
2 changed files with 4 additions and 2 deletions

View File

@@ -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'] = '" "';

View File

@@ -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'] = '" "';
}