rem:  var section = this; this.headerElement.addEventListener("click", function() { section.expanded = !section.expanded; }, false); 
add: this.headerElement.addEventListener("click", this.toggleExpanded.bind(this), false); 
context: WebInspector.PropertiesSection = function(title, subtitle){    this.element = document.createElement("div");    this.element.className = "section";    this.headerElement = document.createElement("div");    this.headerElement.className = "header";    this.titleElement = document.createElement("div");    this.titleElement.className = "title";    this.subtitleElement = document.createElement("div");    this.subtitleElement.className = "subtitle";    this.headerElement.appendChild(this.titleElement);    this.headerElement.appendChild(this.subtitleElement);    var section = this;    this.headerElement.addEventListener("click", function() { section.expanded = !section.expanded; }, false);    this.propertiesElement = document.createElement("ol");    this.propertiesElement.className = "properties";    this.propertiesTreeOutline = new TreeOutline(this.propertiesElement);    this.propertiesTreeOutline.section = this;    this.element.appendChild(this.headerElement);    this.element.appendChild(this.propertiesElement);    this.title = title;    this.subtitle = subtitle;    this.expanded = false;}
meta: 5650	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5650/30e07e565a3698c3faf103baaca79ee99b97c3f1/PropertiesSection.js/buggy/WebCore/page/inspector/PropertiesSection.js