    updateSelection: function(object)    {        var frame = this.context.currentFrame;                var newFrame = frame && frame.script != this.lastScript;        if (newFrame)        {            this.toggles = {};            this.lastScript = frame.script;        }                var members = [];        if (this.watches)        {            for (var i = 0; i < this.watches.length; ++i)            {                var expr = this.watches[i];                var value;                try                {                    value = Firebug.CommandLine.evaluate(expr, this.context);                }                catch (exc)                {                    if (exc instanceof this.context.window.Error)                        value = new ErrorCopy(exc.message);                    else                        value = new ErrorCopy(exc+"");                }                addMember("watch", members, expr, value, 0);            }        }                if (frame)        {            var thisVar = frame.thisValue.getWrappedValue();            addMember("user", members, "this", thisVar, 0);            var listValue = {value: null}, lengthValue = {value: 0};            frame.scope.getProperties(listValue, lengthValue);            var props = [], funcs = [];            for (var i = 0; i < lengthValue.value; ++i)            {                var prop = listValue.value[i];                var name = prop.name.getWrappedValue();                if (name in ignoreVars)                    continue;                var value = prop.value.getWrappedValue();                if (typeof(value) == "function")                    addMember("userFunction", funcs, name, value, 0);                else                    addMember("user", props, name, value, 0);            }            function sortName(a, b) { return a.name > b.name ? 1 : -1; }            props.sort(sortName);            members.push.apply(members, props);            funcs.sort(sortName);            members.push.apply(members, funcs);        }        expandMembers(members, this.toggles, 0, 0);        this.showMembers(members, !newFrame);    }
2454	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2454/e1d42ad3fad63b72826a4e2ed0726866484c9ac3/dom.js/clean/extension/content/firebug/dom.js