add: e.target.value = ""; 
context: function onInputCompleteLine(e){    if (e.target.getAttribute ("expanded") != "YES")    {        e.line = e.line.replace (/\n/g, "");                if (e.line[0] == client.COMMAND_CHAR)        {            var ary = e.line.substr(1, e.line.length).match (/(\S+)? ?(.*)/);            var command = ary[1];                        if (command[0].search (/[\[\{\(]/) == 0) /* request to expand */            {                e.target.setAttribute("expanded", "YES");                switch (command[0])                {                    case "[":                        e.target.setAttribute("collapseChar", "]");                        break;                    case "{":                        e.target.setAttribute("collapseChar", "}");                        break;                                            case "(":                        e.target.setAttribute("collapseChar", ")");                        break;                        }                e.target.style.height = client.EXPAND_HEIGHT;            }            else /* normal command */            {                var ev = new CEvent ("client", "input-command", client,                                     "onInputCommand");                ev.command = command;                ev.inputData =  ary[2] ? stringTrim(ary[2]) : "";                ev.target = client.currentObject;                getObjectDetails (ev.target, ev);                client.eventPump.addEvent (ev);            }        }        else /* plain text */        {            client.sayToCurrentTarget (e.line);            e.target.value = "";                    }    }    else /* input-box is expanded */    {        var lines = e.target.value.split("\n");        for (i in lines)            if (lines[i] == "")                arrayRemoveAt (lines, i);        var lastLine = lines[lines.length - 1];        if (lastLine.replace(/s*$/,"") ==            e.target.getAttribute ("collapseChar"))        {            dd ("collapsing...");                        e.target.setAttribute("expanded", "NO");            e.target.style.height = client.COLLAPSE_HEIGHT;            e.target.value = "";            client.sayToCurrentTarget (lines[i]);        }    }    }
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/9af3ae8ecad07eb84fef942a41138748210f6143/test3-handlers.js/buggy/xul/tests/test3-handlers.js