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

Method initClass

app/views/play/modal/PromotionModal.js:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13module.exports = (PromotionModal = (function () {
14 PromotionModal = class PromotionModal extends ModalView {
15 static initClass () {
16 this.prototype.template = template
17 this.prototype.id = 'promotion-modal'
18
19 this.prototype.events = {
20 'click #close-modal': 'hide',
21 'mouseup .promotion-link': 'onClickPromotionLink'
22 }
23 }
24
25 onClickPromotionLink (e) {
26 return (window.tracker != null ? window.tracker.trackEvent('Click Promotion link', { label: 'tarena-winter-tour-link' }) : undefined)

Callers 1

PromotionModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected