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,9 +1,7 @@
import Model from 'flarum/Model';
import mixin from 'flarum/utils/mixin';
export default class Forum extends mixin(Model, {
canStartDiscussion: Model.attribute('canStartDiscussion')
}) {
export default class Forum extends Model {
apiEndpoint() {
return '/forum';
}