[API] Mark Selection as private

This commit is contained in:
Victor Woeltjen 2016-09-29 17:22:29 -07:00
parent 0ae0abcfc3
commit 1fde82e673

View File

@ -21,6 +21,11 @@
*****************************************************************************/
define(['EventEmitter'], function (EventEmitter) {
/**
* Manages selection state for Open MCT
* @private
*/
function Selection() {
EventEmitter.call(this);
this.selected = [];
@ -28,9 +33,9 @@ define(['EventEmitter'], function (EventEmitter) {
Selection.prototype = Object.create(EventEmitter.prototype);
Selection.prototype.add = function (path) {
Selection.prototype.add = function (context) {
this.clear(); // Only allow single select as initial simplification
this.selected.push(path);
this.selected.push(context);
this.emit('change');
};