rem: 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:{ } }; } 
add: if (!(category in this.categories)) this.categories[category] = { table:{ } };  
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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/6af0fa41f92ced8614a60ee295c57af4b4357dd9/nsCategoryManager.js/buggy/xpcom/components/nsCategoryManager.js