src/selection/Selection.js (#2535)

This commit is contained in:
David Tsay 2019-11-06 15:14:05 -08:00 committed by Deep Tailor
parent 286d6e5082
commit 527c5ec7dd

View File

@ -218,15 +218,15 @@ define(
* @public * @public
*/ */
Selection.prototype.selectable = function (element, context, select) { Selection.prototype.selectable = function (element, context, select) {
if (!this.isSelectable(element)) {
return () => {};
}
let selectable = { let selectable = {
context: context, context: context,
element: element element: element
}; };
if (!this.isSelectable(element)) {
return () => {};
}
var capture = this.capture.bind(this, selectable); var capture = this.capture.bind(this, selectable);
var selectCapture = this.selectCapture.bind(this, selectable); var selectCapture = this.selectCapture.bind(this, selectable);