Skip to content

Commit

Permalink
Remove mode where it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
woutervh- committed Aug 18, 2020
1 parent 3087061 commit 509bd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brush.js
Expand Up @@ -231,7 +231,7 @@ function brush(dim) {
function tween(t) {
state.selection = t === 1 && selection1 === null ? null : i(t);
redraw.call(that);
emit.brush(mode);
emit.brush();
}

return selection0 !== null && selection1 !== null ? tween : tween(1);
Expand All @@ -248,7 +248,7 @@ function brush(dim) {
interrupt(that);
state.selection = selection1 === null ? null : selection1;
redraw.call(that);
emit.start(mode).brush(mode).end(mode);
emit.start().brush().end();
});
}
};
Expand Down

0 comments on commit 509bd25

Please sign in to comment.