add: document.addEventListener("beforecopy", function(event) { WebInspector.documentCanCopy(event) }, true); document.addEventListener("copy", function(event) { WebInspector.documentCopy(event) }, true); 
context: WebInspector.loaded = function(event){    this.fileOutline = new TreeOutline(document.getElementById("list"));    this.fileOutline.expandTreeElementsWhenArrowing = true;    this.statusOutline = new TreeOutline(document.getElementById("status"));    this.statusOutline.expandTreeElementsWhenArrowing = true;    this.resourceCategories = {        documents: new WebInspector.ResourceCategory("documents"),        stylesheets: new WebInspector.ResourceCategory("stylesheets"),        images: new WebInspector.ResourceCategory("images"),        scripts: new WebInspector.ResourceCategory("scripts"),        fonts: new WebInspector.ResourceCategory("fonts"),        databases: new WebInspector.ResourceCategory("databases"),        other: new WebInspector.ResourceCategory("other")    };    this.consoleListItem = new WebInspector.ConsoleStatusTreeElement();    this.consoleListItem.item.onselect = function(element) { WebInspector.StatusTreeElement.selected(element); WebInspector.navigateToPanel(WebInspector.consolePanel) };    this.consoleListItem.item.ondeselect = function(element) { WebInspector.consolePanel.hide() };    this.statusOutline.appendChild(this.consoleListItem.item);    this.networkListItem = new WebInspector.StatusTreeElement("Network");    this.networkListItem.onselect = function(element) { WebInspector.StatusTreeElement.selected(element); WebInspector.navigateToPanel(WebInspector.networkPanel); };    this.networkListItem.ondeselect = function(element) { WebInspector.networkPanel.hide() };    this.statusOutline.appendChild(this.networkListItem);    this.resourceCategories.documents.listItem.expand();    this.currentFocusElement = document.getElementById("sidebar");    this.addMainEventListeners(document);    window.addEventListener("unload", function(event) { WebInspector.windowUnload(event) }, true);    window.addEventListener("resize", function(event) { WebInspector.windowResize(event) }, true);    document.addEventListener("mousedown", function(event) { WebInspector.changeFocus(event) }, true);    document.addEventListener("focus", function(event) { WebInspector.changeFocus(event) }, true);    document.addEventListener("keypress", function(event) { WebInspector.documentKeypress(event) }, true);    document.getElementById("back").title = "Show previous panel.";    document.getElementById("forward").title = "Show next panel.";    document.getElementById("back").addEventListener("click", function(event) { WebInspector.back() }, true);    document.getElementById("forward").addEventListener("click", function(event) { WebInspector.forward() }, true);    this.updateBackForwardButtons();    document.getElementById("attachToggle").addEventListener("click", function(event) { WebInspector.toggleAttach() }, true);    document.getElementById("statusToggle").addEventListener("click", function(event) { WebInspector.toggleStatusArea() }, true);    document.getElementById("sidebarResizeWidget").addEventListener("mousedown", WebInspector.sidebarResizerDragStart, true);    document.getElementById("sidebarResizer").addEventListener("mousedown", WebInspector.sidebarResizerDragStart, true);    document.getElementById("searchResultsResizer").addEventListener("mousedown", WebInspector.searchResultsResizerDragStart, false);    document.body.addStyleClass("detached");    window.removeEventListener("load", this.loaded, false);    delete this.loaded;    InspectorController.loaded();}
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/0d7bf379fe63943a2f70bd769a199bac826d252a/inspector.js/clean/WebCore/page/inspector/inspector.js