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

Method initClass

app/views/play/level/modal/VictoryModal.js:22–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20module.exports = (VictoryModal = (function () {
21 VictoryModal = class VictoryModal extends ModalView {
22 static initClass () {
23 this.prototype.id = 'level-victory-modal'
24 this.prototype.template = template
25
26 this.prototype.subscriptions =
27 { 'ladder:game-submitted': 'onGameSubmitted' }
28
29 this.prototype.events = {
30 'click .sign-up-button': 'onClickSignupButton',
31
32 // review events
33 'mouseover .rating i' (e) { return this.showStars(this.starNum($(e.target))) },
34 'mouseout .rating i' () { return this.showStars() },
35 'click .rating i' (e) {
36 this.setStars(this.starNum($(e.target)))
37 return this.$el.find('.review').show()
38 },
39 'keypress .review textarea' () { return this.saveReviewEventually() }
40 }
41 }
42
43 constructor (options) {
44 super(options)

Callers 1

VictoryModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected