fix multi-select regression

This commit is contained in:
Ansis Brammanis
2013-04-02 16:54:08 -04:00
parent e097641f4e
commit 3ad94406cb
+2 -2
View File
@@ -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);