(origin = Parse.User.current())
| 13 | |
| 14 | |
| 15 | setOrigin(origin = Parse.User.current()) { |
| 16 | this.origin = origin; |
| 17 | |
| 18 | if (origin.get('email')) this.email = origin.get('email'); |
| 19 | if (origin.get('username')) this.username = origin.get('username'); |
| 20 | if (origin.get('firstName')) this.firstName = origin.get('firstName'); |
| 21 | if (origin.get('lastName')) this.lastName = origin.get('lastName'); |
| 22 | if (origin.get('avatar')) this.avatar = origin.get('avatar'); |
| 23 | if (origin.get('sex')) this.sex = origin.get('sex'); |
| 24 | |
| 25 | return this; |
| 26 | } |
| 27 | |
| 28 | updateOrigin() { |
| 29 | this.origin.set("firstName", this.firstName); |
no outgoing calls
no test coverage detected