Created
July 29, 2016 19:39
-
-
Save uhtred/14f50d5c3c74cfd0f43f3a912d2496e8 to your computer and use it in GitHub Desktop.
Mob-X Pitfalls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Todo { | |
| @observable done = true | |
| @observable title = "test" | |
| } | |
| const todo = new Todo() | |
| "done" in todo // true | |
| todo.hasOwnProperty("done") // false | |
| Object.keys(todo) // [] | |
| console.log(todo.title) | |
| "done" in todo // true | |
| todo.hasOwnProperty("done") // true | |
| Object.keys(todo) // ["done", "title"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment