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

Method initClass

app/views/common/EditView.js:21–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19module.exports = (EditView = (function () {
20 EditView = class EditView extends RootView {
21 static initClass () {
22 this.prototype.id = 'editor-edit-view'
23 this.prototype.template = template
24
25 this.prototype.resource = null
26 this.prototype.schema = null
27 this.prototype.redirectPathOnSuccess = null // id or slug will be automatically added
28 this.prototype.filePath = null
29 this.prototype.resourceName = null // used in breadcrumbs
30 this.prototype.treemaOptions = null
31
32 this.prototype.events = {
33 'click #save-button': 'onClickSaveButton',
34 'click #i18n-button': 'onPopulateI18N'
35 }
36 }
37
38 onLoaded () {
39 super.onLoaded()

Callers 1

EditView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected