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

Method initClass

app/views/modal/RevertModal.js:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15module.exports = (RevertModal = (function () {
16 RevertModal = class RevertModal extends ModalView {
17 static initClass () {
18 this.prototype.id = 'revert-modal'
19 this.prototype.template = template
20
21 this.prototype.events =
22 { 'click #changed-models button': 'onRevertModel' }
23 }
24
25 onRevertModel (e) {
26 const id = $(e.target).val()

Callers 1

RevertModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected