rem: if (mode == nsICategoryManager.override) { old = category.override || null; category.override = handler; } else if (mode == nsICategoryManager.fallback) { old = category.fallback || null; category.fallback = handler; 
add: if (mode == nsICategoryManager.OVERRIDE) { old = category.override || null; category.override = handler; } else if (mode == nsICategoryManager.FALLBACK) { old = category.fallback || null; category.fallback = handler; 
context: proto.registerCategoryHandler = function(category, handler, mode) {    dump("nCM: handler.getCategoryEntry: " + handler.getCategoryEntry + "\n");    dump("typeof handler: " + typeof handler + "\n");    /*    dump('rCH: "' + category + '".' +         (mode == nsICategoryManager.fallback ? "fallback" :          (mode == nsICategoryManager.override ? "override" :            mode)) + " = " + handler + "\n");    */    if (!(category in this.categories)) {        dump("rCH: creating category \"" + category + "\"\n");	this.categories[category] = { table:{ } };    }    var old;    var category = this.categories[category];    if (mode == nsICategoryManager.override) {	old = category.override || null;	category.override = handler;    } else if (mode == nsICategoryManager.fallback) {	old = category.fallback || null;	category.fallback = handler;    } else {        dump("\nregisterCategoryHandler: illegal mode " + mode + "\n\n");        throw Components.results.NS_ERROR_INVALID_ARG;    }    return old;};
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6af0fa41f92ced8614a60ee295c57af4b4357dd9/nsCategoryManager.js/clean/xpcom/components/nsCategoryManager.js