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

Method constructor

app/views/play/modal/PollModal.js:31–38  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

29 }
30
31 constructor (options) {
32 let left, left1
33 super(options)
34 this.poll = options.poll
35 this.userPollsRecord = options.userPollsRecord
36 this.previousAnswer = ((left = this.userPollsRecord.get('polls')) != null ? left : {})[this.poll.id]
37 this.previousReward = ((left1 = this.userPollsRecord.get('rewards')) != null ? left1 : {})[this.poll.id]
38 }
39
40 getRenderData (c) {
41 c = super.getRenderData(c)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected