rem: for(var i=0; i< this.layers.length; i++) { this.layers[i].destroy(); } this.layers = null; for(var i=0; i< this.controls.length; i++) { this.controls[i].destroy(); } this.controls = null; 
add: if (this.layers != null) { for(var i=0; i< this.layers.length; i++) { this.layers[i].destroy(); } this.layers = null; } if (this.controls != null) { for(var i=0; i< this.controls.length; i++) { this.controls[i].destroy(); } this.controls = null; } 
context:     destroy:function() {        for(var i=0; i< this.layers.length; i++) {            this.layers[i].destroy();        }         this.layers = null;        for(var i=0; i< this.controls.length; i++) {            this.controls[i].destroy();        }         this.controls = null;    },
meta: 4411	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4411/75fe1fee4c94f843645c2e079010e6cf34bf3a8e/Map.js/clean/lib/OpenLayers/Map.js