diff --git a/src/brush.js b/src/brush.js index 36afe5a..3f241d6 100644 --- a/src/brush.js +++ b/src/brush.js @@ -209,9 +209,9 @@ function brush(dim) { .each(function() { var that = this, args = arguments, + state = that.__brush, selection = dim.input(typeof selection === "function" ? selection.apply(that, args) : selection, state.extent), - emit = emitter(that, args).beforestart(), - state = that.__brush; + emit = emitter(that, args).beforestart(); interrupt(that); state.selection = empty(selection) ? null : selection;