rem: this.prefRecords[prefName] = {defaultValue: defaultValue, realValue: null}; 
add: var label = getMsgFrom(bundle, "pref." + prefName + ".label", null, name); var help  = getMsgFrom(bundle, "pref." + prefName + ".help", null, MSG_NO_HELP);  this.prefRecords[prefName] = new PrefRecord (prefName, defaultValue, label, help); 
context: function pm_addpref(prefName, defaultValue, setter){    var prefManager = this;    function updateArrayPref() { prefManager.updateArrayPref(prefName); };    function prefGetter() { return prefManager.getPref(prefName); };    function prefSetter(value) { return prefManager.setPref(prefName, value); };    if (!ASSERT(!(prefName in this.defaultValues),                "Preference already exists: " + prefName))    {        return;    }        if (!setter)        setter = prefSetter;        if (defaultValue instanceof Array)        defaultValue.update = updateArrayPref;    this.prefRecords[prefName] = {defaultValue: defaultValue, realValue: null};    this.prefNames.push(prefName);    this.prefNames.sort();    this.prefs.__defineGetter__(prefName, prefGetter);    this.prefs.__defineSetter__(prefName, setter);}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/56cdfb949a9608f57f041c995a8a1183a5b670f2/pref-manager.js/clean/extensions/irc/js/lib/pref-manager.js