Also trigger beforefeaturemodified event in non-standalone mode

d2a32d5 accidently changed the number of assertions in the
test_selectFeature function, so the change in behavior that no
beforefeaturemodified event is called any more in non-standalone mode got
unnoticed: Before unhacking ModifyFeature, the SelectFeature control
called the beforeSelectFeature method directly. Now, without a built-in
SelectFeature control, we need to call it from the selectFeature method in
both standalone and non-standalone mode.
This commit is contained in:
ahocevar
2013-04-09 23:16:30 +02:00
parent e1dea2d8e1
commit e5dc583d52
2 changed files with 5 additions and 5 deletions

View File

@@ -204,7 +204,7 @@
}
function test_selectFeature(t) {
t.plan(9);
t.plan(12);
var map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.Vector("Vectors!", {isBaseLayer: true});
map.addLayer(layer);