Bigger refactoring of handling of segment selection: Have Path#_selectedSegmentState be the summed up value of all Segment's states, and compare it to segments.length * SelectionState.POINT in #fullySelected.

This commit is contained in:
Jürg Lehni 2011-06-14 15:37:25 +01:00
parent e670c262c3
commit a32b687bfd
5 changed files with 43 additions and 51 deletions
src/project

View file

@ -142,8 +142,8 @@ var Project = this.Project = Base.extend({
// TODO: Implement setSelectedItems?
_selectItem: function(item, select) {
if (select) {
_updateSelection: function(item) {
if (item._selected) {
this._selectedItemCount++;
this._selectedItems[item.getId()] = item;
} else {