Only call _changed() if selection actually changes.

This commit is contained in:
Jürg Lehni 2011-06-19 16:47:24 +01:00
parent 0063fdc98f
commit 9d2f8c5035

View file

@ -339,8 +339,8 @@ var Item = this.Item = Base.extend({
} else if ((selected = !!selected) != this._selected) {
this._selected = selected;
this._project._updateSelection(this);
this._changed(ChangeFlags.ATTRIBUTE | ChangeFlags.APPEARANCE);
}
this._changed(ChangeFlags.ATTRIBUTE | ChangeFlags.APPEARANCE);
},
_selected: false,