Skip to content

Commit

Permalink
Initialitze properly the observables!
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Aug 28, 2016
1 parent 81fa2ab commit 63bd104
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-rest",
"version": "0.1.0",
"version": "0.1.1",
"description": "REST conventions for mobx.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ interface ApiInterface { // eslint-disable-line
}

class Collection {
@observable request: ?Request
@observable error: ?Error
@observable request: ?Request = null
@observable error: ?Error = null
@observable models: [] = []

api: ApiInterface // eslint-disable-line
Expand Down
4 changes: 2 additions & 2 deletions src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import getUuid from 'node-uuid'
import type { Uuid, Error, Request, Id, Label, DestroyOptions, SaveOptions } from './types'

class Model {
@observable request: ?Request
@observable error: ?Error
@observable request: ?Request = null
@observable error: ?Error = null

uuid: Uuid
collection: Collection
Expand Down

0 comments on commit 63bd104

Please sign in to comment.