mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Shorten code.
This commit is contained in:
parent
97c4435d87
commit
f12ed7234a
1 changed files with 1 additions and 2 deletions
|
@ -39,9 +39,8 @@ var Item = this.Item = Base.extend({
|
|||
* The unique id of the item.
|
||||
*/
|
||||
getId: function() {
|
||||
if (this._id == null) {
|
||||
if (this._id == null)
|
||||
this._id = Item._id = (Item._id || 0) + 1;
|
||||
}
|
||||
return this._id;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue