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

Method initClass

app/views/editor/PatchModal.js:23–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21module.exports = (PatchModal = (function () {
22 PatchModal = class PatchModal extends ModalView {
23 static initClass () {
24 this.prototype.id = 'patch-modal'
25 this.prototype.template = template
26 this.prototype.plain = true
27 this.prototype.modalWidthPercent = 60
28 this.prototype.instant = true
29
30 this.prototype.events = {
31 'click #withdraw-button': 'withdrawPatch',
32 'click #reject-button': 'rejectPatch',
33 'click #accept-button': 'onAcceptPatch',
34 'click #accept-save-button': 'onAcceptAndSavePatch'
35 }
36
37 this.prototype.shortcuts = {
38 'a, shift+a': 'acceptPatch',
39 r: 'rejectPatch'
40 }
41 }
42
43 constructor (patch, targetModel, options) {
44 super(options)

Callers 1

PatchModal.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected