rem: for (i=0; i<numSS; i++) { docStyleSheet = docStyleSheets[i]; if (docStyleSheet.title == "") { if (docStyleSheet.disabled == true) docStyleSheet.disabled = false; continue; } docStyleSheet.disabled = (title != docStyleSheet.title); } 
add: for (var i = 0; i < docStyleSheets.length; ++i) { var docStyleSheet = docStyleSheets[i];  if (docStyleSheet.title) docStyleSheet.disabled = (docStyleSheet.title != title); else if (docStyleSheet.disabled) docStyleSheet.disabled = false; } 
context: function stylesheetSwitch(forDocument, title) {  docStyleSheets = forDocument.styleSheets;  numSS = docStyleSheets.length;  for (i=0; i<numSS; i++) {    docStyleSheet = docStyleSheets[i];    if (docStyleSheet.title == "") {      if (docStyleSheet.disabled == true)        docStyleSheet.disabled = false;      continue;    }    docStyleSheet.disabled = (title != docStyleSheet.title);  }     }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cd80143aee6dbfef87e3bdbb3948780e5f478fca/navigator.js/buggy/suite/browser/navigator.js