rem: var prefValue = catergoryPrefBranch.getCharPref(prefName); 
add: var prefValue = categoryPrefBranch.getCharPref(prefName); 
context:    observe: function(aSubject, aTopic, aPrefName)   {      var i;      for (i = 0; i < this.mCalendarStyleSheet.cssRules.length ; ++i) {        if (this.mCalendarStyleSheet.cssRules[i].selectorText.indexOf(".event-category-") == 0) {          dump(this.mCalendarStyleSheet.cssRules+" "+this.mCalendarStyleSheet.cssRules[i].selectorText+"\n");          this.mCalendarStyleSheet.deleteRule(i);          --i;        }      }      var catergoryPrefBranch = prefService.getBranch("calendar.category.color.");      var prefCount = { value: 0 };      var prefArray = catergoryPrefBranch.getChildList("", prefCount);      for (i = 0; i < prefArray.length; ++i) {         var prefName = prefArray[i];         var prefValue = catergoryPrefBranch.getCharPref(prefName);         this.mCalendarStyleSheet.insertRule(".event-category-" + prefName + " { border-color: " + prefValue +" !important; }", 1);      }   }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2b00a981e0eaad0c4d49c61d53dc15bb6012ba19/calendar.js/buggy/calendar/resources/content/calendar.js