MCPcopy Create free account
hub / github.com/beachio/chisel / setOrigin

Method setOrigin

src/models/UserData.js:15–26  ·  view source on GitHub ↗
(origin = Parse.User.current())

Source from the content-addressed store, hash-verified

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);

Callers 8

getUserFunction · 0.45
requestModelsFunction · 0.45
requestFieldsFunction · 0.45
initFunction · 0.45
requestMediaFunction · 0.45
loginFunction · 0.45
loginOrRegisterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected