don't try to select relations

This commit is contained in:
Ansis Brammanis
2013-04-02 15:42:35 -04:00
parent 691156caec
commit 5c15a180a3
+7
View File
@@ -4,6 +4,13 @@ iD.modes.Select = function(context, selection, initial) {
button: 'browse'
};
// Selecting relations is not supported
selection = selection.filter(function(d) {
return d[0] !== 'r';
});
if (!selection.length) return iD.modes.Browse(context);
var inspector = iD.ui.Inspector(context, singular()),
keybinding = d3.keybinding('select'),
timeout = null,