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

@ -10,7 +10,7 @@ export default class Model {
* @param {Store} store The data store that this model should be persisted to.
* @public
*/
constructor(data = {}, store) {
constructor(data = {}, store = null) {
/**
* The resource object from the API.
*