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

Method constructor

app/views/editor/modal/NewModelModal.js:28–35  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

26 }
27
28 constructor (options) {
29 super(options)
30 this.modelClass = options.model
31 this.modelLabel = options.modelLabel
32 this.newModelTitle = `editor.new_${_.string.slugify(this.modelLabel)}_title`
33 this.properties = options.properties
34 this.hasNoNameProperty = options.hasNoNameProperty
35 }
36
37 makeNewModel () {
38 const model = new this.modelClass()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected