rem:  var panel = this; window.addEventListener("resize", function() { panel.updateTreeSelection() }, false); 
context: WebInspector.DocumentPanel = function(resource, views){    var allViews = [{ title: "DOM" }];    if (views)        allViews = allViews.concat(views);    WebInspector.SourcePanel.call(this, resource, allViews);    var domView = this.views.dom;    domView.show = function() { InspectorController.highlightDOMNode(panel.focusedDOMNode) };    domView.hide = function() { InspectorController.hideDOMNodeHighlight() };    domView.sideContentElement = document.createElement("div");    domView.sideContentElement.className = "content side";    domView.treeContentElement = document.createElement("div");    domView.treeContentElement.className = "content tree outline-disclosure";    domView.treeListElement = document.createElement("ol");    domView.treeOutline = new TreeOutline(domView.treeListElement);    domView.treeOutline.panel = this;    var panel = this;    window.addEventListener("resize", function() { panel.updateTreeSelection() }, false);    domView.crumbsElement = document.createElement("div");    domView.crumbsElement.className = "crumbs";    domView.innerCrumbsElement = document.createElement("div");    domView.crumbsElement.appendChild(domView.innerCrumbsElement);    domView.sidebarPanes = {};    domView.sidebarPanes.styles = new WebInspector.SidebarPane("Styles");    domView.sidebarPanes.metrics = new WebInspector.SidebarPane("Metrics");    domView.sidebarPanes.properties = new WebInspector.SidebarPane("Properties");    var panel = this;    domView.sidebarPanes.styles.onexpand = function() { panel.updateStyles() };    domView.sidebarPanes.metrics.onexpand = function() { panel.updateMetrics() };    domView.sidebarPanes.properties.onexpand = function() { panel.updateProperties() };    domView.sidebarPanes.styles.expanded = true;    domView.sidebarElement = document.createElement("div");    domView.sidebarElement.className = "sidebar";    domView.sidebarElement.appendChild(domView.sidebarPanes.styles.element);    domView.sidebarElement.appendChild(domView.sidebarPanes.metrics.element);    domView.sidebarElement.appendChild(domView.sidebarPanes.properties.element);    domView.sideContentElement.appendChild(domView.treeContentElement);    domView.sideContentElement.appendChild(domView.crumbsElement);    domView.treeContentElement.appendChild(domView.treeListElement);    domView.sidebarResizeElement = document.createElement("div");    domView.sidebarResizeElement.className = "sidebar-resizer-vertical sidebar-resizer-vertical-right";    domView.sidebarResizeElement.addEventListener("mousedown", function(event) { panel.rightSidebarResizerDragStart(event) }, false);    domView.contentElement.appendChild(domView.sideContentElement);    domView.contentElement.appendChild(domView.sidebarElement);    domView.contentElement.appendChild(domView.sidebarResizeElement);    this.rootDOMNode = this.resource.documentNode;}
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/63e28315b5c63fe081f945e0aee1c4e59c84aa0f/DocumentPanel.js/clean/WebCore/page/inspector/DocumentPanel.js