MCPcopy Create free account
hub / github.com/codecombat/codecombat / fetchUser

Method fetchUser

app/views/common/UserView.js:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 fetchUser () {
35 if (this.isMe()) {
36 this.user = me
37 this.onLoaded()
38 }
39 this.user = new User({ _id: this.userID })
40 return this.supermodel.loadModel(this.user, { cache: false })
41 }
42
43 isMe () {
44 let needle

Callers 1

constructorMethod · 0.95

Calls 2

isMeMethod · 0.95
onLoadedMethod · 0.95

Tested by

no test coverage detected