diff --git a/src/selection/Selection.js b/src/selection/Selection.js index f94adc388a..66d08b8744 100644 --- a/src/selection/Selection.js +++ b/src/selection/Selection.js @@ -218,15 +218,15 @@ define( * @public */ Selection.prototype.selectable = function (element, context, select) { + if (!this.isSelectable(element)) { + return () => {}; + } + let selectable = { context: context, element: element }; - if (!this.isSelectable(element)) { - return () => {}; - } - var capture = this.capture.bind(this, selectable); var selectCapture = this.selectCapture.bind(this, selectable);