rem: if (rv.reason == PICK_OK) 
add: if (rv.ok) 
context: function pwin_onPrefListAdd(object){    var list = getRelatedItem(object, "list");    var newItem;        switch (list.getAttribute("kind"))    {        case "url":            var item = prompt(MSG_PREFS_LIST_ADD);            if (item)            {                newItem = document.createElement("listitem");                newItem.setAttribute("label", item);                newItem.value = item;                list.appendChild(newItem);                this.onPrefListSelect(object);            }            break;        case "file":        case "fileurl":            var spec = "$all";                        var rv = pickOpen(MSG_PREFS_BROWSE_TITLE, spec);            if (rv.reason == PICK_OK)            {                var data = { file: rv.file.path, fileurl: rv.picker.fileURL.spec };                var kind = list.getAttribute("kind");                                newItem = document.createElement("listitem");                newItem.setAttribute("label", data[kind]);                newItem.value = data[kind];                list.appendChild(newItem);                this.onPrefListSelect(object);            }                        break;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ee4b72f7aa0f01f1872571475baa82ff42c44fd/config.js/clean/extensions/irc/xul/content/config.js