Shorten code.

This commit is contained in:
Jürg Lehni 2011-05-16 19:44:46 +01:00
parent 97c4435d87
commit f12ed7234a

View file

@ -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;
},