Browse files

don't try to select relations

  • Loading branch information...
1 parent 691156c commit 5c15a180a3dfc4e3444f7b646724808ab37532d9 @ansis ansis committed Apr 2, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/id/modes/select.js
View
7 js/id/modes/select.js
@@ -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,

0 comments on commit 5c15a18

Please sign in to comment.