We can directly access Item#_id.

No need to call Item#getId() internally.
This commit is contained in:
Jürg Lehni 2011-11-28 23:14:02 +01:00
parent cb8c94ef7e
commit cadc2e78ca
3 changed files with 19 additions and 22 deletions
src/project

View file

@ -164,10 +164,10 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
_updateSelection: function(item) {
if (item._selected) {
this._selectedItemCount++;
this._selectedItems[item.getId()] = item;
this._selectedItems[item._id] = item;
} else {
this._selectedItemCount--;
delete this._selectedItems[item.getId()];
delete this._selectedItems[item._id];
}
},