1
0
mirror of https://github.com/flarum/core.git synced 2025-07-02 07:33:42 +02:00

Clean up, don't use mixin

PhpStorm/WebStorm doesn't like the mixin syntax, and it's clearer to just use Object.assign.
This commit is contained in:
Toby Zerner
2015-10-13 16:57:18 +10:30
parent 33dd5fff36
commit e3569d39cc
9 changed files with 44 additions and 27 deletions

View File

@ -1,12 +1,14 @@
import Model from 'flarum/Model';
import mixin from 'flarum/utils/mixin';
class Group extends mixin(Model, {
class Group extends Model {}
Object.assign(Group.prototype, {
nameSingular: Model.attribute('nameSingular'),
namePlural: Model.attribute('namePlural'),
color: Model.attribute('color'),
icon: Model.attribute('icon')
}) {}
});
Group.ADMINISTRATOR_ID = '1';
Group.GUEST_ID = '2';