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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user