context: function cmdChromeFilter (e){    var currentState = console.prefs["enableChromeFilter"];        if (e.toggle != null)    {        if (e.toggle == "toggle")            e.toggle = !currentState;        if (e.toggle != currentState)        {            if (e.toggle)                console.jsds.insertFilter (console.chromeFilter, null);            else                console.jsds.removeFilter (console.chromeFilter);        }                console.scriptsView.freeze();        for (var container in console.scripts)        {            if (console.scripts[container].fileName.indexOf("chrome:") == 0)            {                var rec = console.scripts[container];                var scriptList = console.scriptsView.childData;                if (e.toggle)                {                    /* filter is on, remove chrome file from scripts view */                    if ("parentRecord" in rec)                    {                        //dd ("remove index " + rec.childIndex + ", " +                        //    rec.fileName);                        scriptList.removeChildAtIndex(rec.childIndex);                    }                    else                        dd ("record already seems to out of the tree");                }                else                {                    /* filter is off, add chrome file to scripts view */                    if (!("parentRecord" in rec))                    {                        //dd ("cmdChromeFilter: append " +                        //    tov_formatRecord(rec, ""));                        scriptList.appendChild(rec);                    }                    else                        dd ("record already seems to be in the tree");                }            }        }        console.scriptsView.thaw();        currentState =             console.enableChromeFilter =             console.prefs["enableChromeFilter"] = e.toggle;    }    feedback (e, getMsg(MSN_CHROME_FILTER,                        currentState ? MSG_VAL_ON : MSG_VAL_OFF));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c253059afafb09ee6b27e3767bb1e487e050ba0f/venkman-commands.js/clean/extensions/venkman/resources/content/venkman-commands.js