DragFeature test Broken in IE6. The tests all passed because this only caused

problems on destroy()/page unload, after all the tests had been run. Thanks 
for the review, tschaub. (Closes #923.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-08-24 22:07:18 +00:00
parent 494870d447
commit c2c821e4c2

View File

@@ -153,7 +153,9 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
*/
deactivate: function() {
if(OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {
this.layer.div.style.zIndex = this.layerIndex;
if (this.layer && this.layer.div) {
this.layer.div.style.zIndex = this.layerIndex;
}
return true;
} else {
return false;