mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 17:08:51 +00:00
src/selection/Selection.js (#2535)
This commit is contained in:
parent
286d6e5082
commit
527c5ec7dd
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user