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

Method initClass

app/views/core/ConfirmModal.js:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13module.exports = (ConfirmModal = (function () {
14 ConfirmModal = class ConfirmModal extends ModalView {
15 static initClass () {
16 this.prototype.id = 'confirm-modal'
17 this.prototype.template = template
18 this.prototype.closeButton = true
19 this.prototype.closeOnConfirm = true
20
21 this.prototype.events = {
22 'click #decline-button': 'onClickDecline',
23 'click #confirm-button': 'onClickConfirm'
24 }
25 }
26
27 initialize (options) {
28 return _.assign(this, _.pick(options, 'title', 'body', 'decline', 'confirm', 'closeOnConfirm', 'closeButton'))

Callers 1

ConfirmModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected