Safeguard against the case where no features are modifiable

This commit is contained in:
ahocevar
2013-12-09 13:25:14 +01:00
parent 87f147db60
commit 8d55e14986

View File

@@ -252,9 +252,9 @@ ol.interaction.Modify.prototype.removeIndex_ = function(features) {
nodesToRemove.push(node); nodesToRemove.push(node);
} }
}); });
} for (i = nodesToRemove.length - 1; i >= 0; --i) {
for (i = nodesToRemove.length - 1; i >= 0; --i) { rBush.remove(nodesToRemove[i]);
rBush.remove(nodesToRemove[i]); }
} }
}; };