rem: rv.net = this.currentObject.parent.parent.parent.name; rv.chan = this.currentObject.parent.name; 
add: rv.net = this.currentObject.parent.parent.parent.unicodeName; rv.chan = this.currentObject.parent.unicodeName; 
context: function pwin_onAddObject(){    var rv = new Object();        /* Try to nobble the current selection and pre-fill as needed. */    switch (this.currentObject.parent.TYPE)    {        case "PrefNetwork":            rv.type = "net";            rv.net = this.currentObject.parent.name;            break;        case "PrefChannel":            rv.type = "chan";            rv.net = this.currentObject.parent.parent.parent.name;            rv.chan = this.currentObject.parent.name;            break;        case "PrefUser":            rv.type = "user";            rv.net = this.currentObject.parent.parent.parent.name;            rv.chan = this.currentObject.parent.name;            break;    }        // Show add dialog, passing the data object along.    window.openDialog("config-add.xul", "cz-config-add", "chrome,dialog,modal", rv);        if (!rv.ok)        return;        /* Ok, so what type did they want again?     *      * NOTE: The param |true| in the object creation calls is for |force|. It     *       causes the hidden pref to be set for the objects so they are shown     *       every time this window opens, until the user deletes them.     */    switch (rv.type)    {        case "net":            this.prefObjects.addObject(new PrefNetwork(client, rv.net, true));            break;        case "chan":            if (!(rv.net in client.networks))                this.prefObjects.addObject(new PrefNetwork(client, rv.net, true));            this.prefObjects.addObject(new PrefChannel(client.networks[rv.net].primServ, rv.chan, true));            break;        case "user":            if (!(rv.net in client.networks))                this.prefObjects.addObject(new PrefNetwork(client, rv.net, true));            this.prefObjects.addObject(new PrefUser(client.networks[rv.net].primServ, rv.chan, true));            break;        default:            // Oops. Not good, if we got here.            alert("Unknown pref type: " + rv.type);    }}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/c6101b49aef97cf47069c333c0e54bcdd4a66616/config.js/buggy/xul/content/config.js