Permalink
Browse files

fix multi-select regression

  • Loading branch information...
1 parent e097641 commit 3ad94406cbd1259a5cbd408118e50abc938b0f18 @ansis ansis committed Apr 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/id/modes/select.js
@@ -11,7 +11,7 @@ iD.modes.Select = function(context, selection, initial) {
if (!selection.length) return iD.modes.Browse(context);
- var inspector = iD.ui.Inspector(context, singular()),
+ var inspector = singular() && iD.ui.Inspector(context, singular()),
keybinding = d3.keybinding('select'),
timeout = null,
behaviors = [
@@ -168,7 +168,7 @@ iD.modes.Select = function(context, selection, initial) {
mode.exit = function() {
if (timeout) window.clearTimeout(timeout);
- wrap.call(inspector.close);
+ if (inspector) wrap.call(inspector.close);
behaviors.forEach(function(behavior) {
context.uninstall(behavior);

0 comments on commit 3ad9440

Please sign in to comment.