Revize b20c8b4b
Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)
sources/src/main/webapp/js/components/group.js | ||
---|---|---|
7 | 7 |
/** @prop {integer} id Unique identifier of the group. */ |
8 | 8 |
this.id = app.groupList.length + 1; |
9 | 9 |
/** @prop {string} name Name of the group. */ |
10 |
this.name = 'Group ' + this.id; |
|
10 |
this.name = props.hasOwnProperty('name') ? props.name : 'Group ' + this.id;
|
|
11 | 11 |
/** @prop {array} symbol Symbol of the group. */ |
12 | 12 |
this.symbol = app.markSymbol.getMarkSymbol(); |
13 | 13 |
|
Také k dispozici: Unified diff
Group name can be set using its constructor