modify feature control must use silent:true when removing/destroying vertices, p=me, r=crschmidt (closes #1562)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2008-07-30 20:26:13 +00:00
parent eb417ff61c
commit c2c23cb3f3
3 changed files with 32 additions and 24 deletions

View File

@@ -213,6 +213,11 @@
control.selectFeature({feature: fakeFeature});
control.destroy();
// layer.destroy() will call removeFeatures with an empty array, make
// removeFeatures reference an empty function to prevent the above
// test to fail
layer.removeFeatures = function(features) {};
layer.destroy();
}
@@ -323,6 +328,11 @@
control.dragComplete();
control.destroy();
// layer.destroy() will call removeFeatures with an empty array, make
// removeFeatures reference an empty function to prevent the above
// test to fail
layer.removeFeatures = function(verts) {};
layer.destroy();
}