OpenLayers OpenLayers

Changeset 17

Show
Ignore:
Timestamp:
05/12/06 18:38:33 (3 years ago)
Author:
sderle
Message:

Eliminate any possible circular references to controls in OpenLayers.Map.destroy().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r9 r17  
    9595        }  
    9696        this.layers = null; 
     97        for(var i=0; i< this.controls.length; i++) { 
     98            this.controls[i].destroy(); 
     99        }  
     100        this.controls = null; 
    97101    }, 
    98102