mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[Selection] Force single select
...as a simplifying assumption for the initial prototype.
This commit is contained in:
parent
20f3b57ddd
commit
1dba551fc6
@ -29,6 +29,7 @@ define(['EventEmitter'], function (EventEmitter) {
|
|||||||
Selection.prototype = Object.create(EventEmitter.prototype);
|
Selection.prototype = Object.create(EventEmitter.prototype);
|
||||||
|
|
||||||
Selection.prototype.add = function (path) {
|
Selection.prototype.add = function (path) {
|
||||||
|
this.clear(); // Only allow single select as initial simplification
|
||||||
this.selected.push(path);
|
this.selected.push(path);
|
||||||
this.emit('change');
|
this.emit('change');
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user