(options, pollID)
| 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 }) |
nothing calls this directly
no test coverage detected