Revert a recent change in selection handling.

This commit is contained in:
Jürg Lehni 2012-11-02 16:27:59 -07:00
parent 69dc8be629
commit b22ff5ecca

View file

@ -678,8 +678,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
_updateSelection: function(segment, oldState, newState) {
segment._selectionState = newState;
var total = this._selectedSegmentState += newState - oldState;
// Set this path as selected in case we have selected segments.
this.setSelected(total > 0);
// Set this path as selected in case we have selected segments. Do not
// unselect if we're down to 0, as the path itself can still remain
// selected even when empty.
if (total > 0)
this.setSelected(true);
},
/**