[Selection] Force single select

...as a simplifying assumption for the initial prototype.
This commit is contained in:
Victor Woeltjen 2016-08-22 16:07:01 -07:00
parent 20f3b57ddd
commit 1dba551fc6

View File

@ -29,6 +29,7 @@ define(['EventEmitter'], function (EventEmitter) {
Selection.prototype = Object.create(EventEmitter.prototype);
Selection.prototype.add = function (path) {
this.clear(); // Only allow single select as initial simplification
this.selected.push(path);
this.emit('change');
};