Fix selection usage

This commit is contained in:
Tom MacWright
2016-08-24 09:34:30 -04:00
parent b14948a268
commit 29f2c20e35
2 changed files with 2 additions and 1 deletions

View File

@@ -189,6 +189,7 @@ export function Map(context) {
}
function zoomPan(manualEvent) {
return; // TODO
var eventTransform = (manualEvent || d3.event).transform;

View File

@@ -118,7 +118,7 @@ export function FeatureList(context) {
});
}
var visible = context.surface().selectAll('.point, .line, .area')[0];
var visible = context.surface().selectAll('.point, .line, .area').nodes();
for (var i = 0; i < visible.length && result.length <= 200; i++) {
addEntity(visible[i].__data__);
}