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

Method constructor

app/views/editor/DeltaView.js:49–68  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

47 }
48
49 constructor (options) {
50 super(options)
51 this.expandedDeltas = []
52 this.skipPaths = options.skipPaths
53 if (key.shift && key.alt) {
54 this.maxDeltas = 1e9
55 } else if (key.shift) {
56 this.maxDeltas = 1000
57 }
58
59 for (const modelName of ['model', 'headModel', 'comparisonModel']) {
60 this[modelName] = options[modelName]
61 if (!this[modelName] || !options.loadModels) { continue }
62 if (!this[modelName].isLoaded) {
63 this[modelName] = this.supermodel.loadModel(this[modelName]).model
64 }
65 }
66
67 if (this.supermodel.finished()) { this.buildDeltas() }
68 }
69
70 onLoaded () {
71 this.buildDeltas()

Callers

nothing calls this directly

Calls 1

buildDeltasMethod · 0.95

Tested by

no test coverage detected