src/selection/Selection.js ()

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
*/
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);