mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Fix infinite recursion in geocoder (fixes #1580)
This commit is contained in:
@@ -82,15 +82,9 @@ iD.ui.Geocoder = function(context) {
|
||||
} else {
|
||||
context.map().on('drawn.geocoder', function() {
|
||||
if (!context.hasEntity(id)) return;
|
||||
context.map().on('drawn.geocoder', null);
|
||||
context.enter(iD.modes.Select(context, [id]));
|
||||
});
|
||||
|
||||
context.on('enter.geocoder', function() {
|
||||
if (context.mode().id !== 'browse') {
|
||||
context.on('enter.geocoder', null)
|
||||
.map().on('drawn.geocoder', null);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user