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

Method constructor

app/views/editor/poll/PollEditView.js:36–44  ·  view source on GitHub ↗
(options, pollID)

Source from the content-addressed store, hash-verified

34 }
35
36 constructor (options, pollID) {
37 super(options)
38 this.pushChangesToPreview = this.pushChangesToPreview.bind(this)
39 this.deletePoll = this.deletePoll.bind(this)
40 this.pollID = pollID
41 this.loadPoll()
42 this.loadUserPollsRecord()
43 this.pushChangesToPreview = _.throttle(this.pushChangesToPreview, 500)
44 }
45
46 loadPoll () {
47 this.poll = new Poll({ _id: this.pollID })

Callers

nothing calls this directly

Calls 2

loadPollMethod · 0.95
loadUserPollsRecordMethod · 0.95

Tested by

no test coverage detected