From 5c15a180a3dfc4e3444f7b646724808ab37532d9 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 2 Apr 2013 15:42:35 -0400 Subject: [PATCH] don't try to select relations --- js/id/modes/select.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/id/modes/select.js b/js/id/modes/select.js index de5d4ffe2..93985bc8d 100644 --- a/js/id/modes/select.js +++ b/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,