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

Method constructor

app/views/editor/modal/VersionsModal.js:53–60  ·  view source on GitHub ↗
(options, ID, model)

Source from the content-addressed store, hash-verified

51 }
52
53 constructor (options, ID, model) {
54 super(options)
55 this.ID = ID
56 this.model = model
57 this.original = new this.model({ _id: this.ID })
58 this.original = this.supermodel.loadModel(this.original).model
59 this.listenToOnce(this.original, 'sync', this.onViewSync)
60 }
61
62 onViewSync () {
63 this.versions = new VersionsViewCollection(this.url, this.original.attributes.original, this.model)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected