rem: window.addEventListener("unload", function(event) { WebInspector.windowUnload(event) }, true); window.addEventListener("resize", function(event) { WebInspector.windowResize(event) }, true); 
add: window.addEventListener("unload", this.windowUnload.bind(this), true); window.addEventListener("resize", this.windowResize.bind(this), true); 
context: WebInspector.loaded = function(){    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(WebInspector.UIString("documents"), "documents"),        stylesheets: new WebInspector.ResourceCategory(WebInspector.UIString("stylesheets"), "stylesheets"),        images: new WebInspector.ResourceCategory(WebInspector.UIString("images"), "images"),        scripts: new WebInspector.ResourceCategory(WebInspector.UIString("scripts"), "scripts"),        fonts: new WebInspector.ResourceCategory(WebInspector.UIString("fonts"), "fonts"),        databases: new WebInspector.ResourceCategory(WebInspector.UIString("databases"), "databases"),        other: new WebInspector.ResourceCategory(WebInspector.UIString("other"), "other")    };    this.Tips = {        ResourceNotCompressed: {id: 0, message: WebInspector.UIString("You could save bandwidth by having your web server compress this transfer with gzip or zlib.")}    };    this.Warnings = {        IncorrectMIMEType: {id: 0, message: WebInspector.UIString("Resource interpreted as %@ but transferred with MIME type %@.")}    };    this.consoleListItem = new WebInspector.ConsoleStatusTreeElement(WebInspector.consolePanel);    this.statusOutline.appendChild(this.consoleListItem);    this.networkListItem = new WebInspector.StatusTreeElement(WebInspector.UIString("Network"), "network", WebInspector.networkPanel);    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.addEventListener("beforecopy", function(event) { WebInspector.documentCanCopy(event) }, true);    document.addEventListener("copy", function(event) { WebInspector.documentCopy(event) }, true);    document.getElementById("back").title = WebInspector.UIString("Show previous panel.");    document.getElementById("forward").title = WebInspector.UIString("Show next panel.");    document.getElementById("search").setAttribute("placeholder", WebInspector.UIString("Search"));    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");    InspectorController.loaded();}
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/30e07e565a3698c3faf103baaca79ee99b97c3f1/inspector.js/buggy/WebCore/page/inspector/inspector.js