diff --git a/js/id/behavior/lasso.js b/js/id/behavior/lasso.js index a3ab3cf6f..f9df080e2 100644 --- a/js/id/behavior/lasso.js +++ b/js/id/behavior/lasso.js @@ -49,7 +49,7 @@ iD.behavior.Lasso = function(context) { .on('mouseup.lasso', null); if (d3.event.clientX !== pos[0] || d3.event.clientY !== pos[1]) { - var selected = context.history().intersects(extent); + var selected = context.intersects(extent); if (selected.length) { context.enter(iD.modes.Select(context, _.pluck(selected, 'id'))); diff --git a/js/id/id.js b/js/id/id.js index 5db609593..a6ee7378f 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -36,6 +36,7 @@ window.iD = function () { context.undo = history.undo; context.redo = history.redo; context.changes = history.changes; + context.intersects = history.intersects; /* Graph */ context.entity = function(id) { diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 57ec07846..e9d0529d6 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -65,7 +65,7 @@ iD.Map = function(context) { graph = context.graph(); if (!difference) { - all = context.history().intersects(extent); + all = context.intersects(extent); filter = d3.functor(true); } else { var complete = difference.complete(extent); diff --git a/js/id/ui/contributors.js b/js/id/ui/contributors.js index b87a0f113..cc44316c4 100644 --- a/js/id/ui/contributors.js +++ b/js/id/ui/contributors.js @@ -2,7 +2,7 @@ iD.ui.Contributors = function(context) { function update(selection) { var users = {}, limit = 3, - entities = context.history().intersects(context.map().extent()); + entities = context.intersects(context.map().extent()); for (var i in entities) { if (entities[i].user) users[entities[i].user] = true;