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

Method initClass

app/views/editor/level/tasks/TasksTabView.js:23–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21module.exports = (TasksTabView = (function () {
22 TasksTabView = class TasksTabView extends CocoView {
23 static initClass () {
24 this.prototype.id = 'editor-level-tasks-tab-view'
25 this.prototype.className = 'tab-pane'
26 this.prototype.template = template
27 this.prototype.events = {
28 'click .task-row': 'onClickTaskRow',
29 'click .task-input': 'onClickTaskInput',
30 'click .start-edit': 'onClickStartEdit',
31 'click #create-task': 'onClickCreateTask',
32 'keydown #cur-edit': 'onKeyDownCurEdit',
33 'blur #cur-edit': 'onBlurCurEdit'
34 }
35
36 this.prototype.subscriptions =
37 { 'editor:level-loaded': 'onLevelLoaded' }
38 }
39
40 applyTaskName (_task, _input) {
41 const name = _input.value

Callers 1

TasksTabView.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected