MCPcopy Index your code
hub / github.com/codecombat/codecombat / constructor

Method constructor

app/models/CocoModel.js:36–42  ·  view source on GitHub ↗
(attributes, options)

Source from the content-addressed store, hash-verified

34 }
35
36 constructor (attributes, options) {
37 super(...arguments)
38 if (_.isObject(attributes) && ('undefined' in attributes)) {
39 console.error(`Unsetting \`undefined\` property key during construction of ${this.constructor.className} model with value ${attributes.undefined}`)
40 delete attributes.undefined
41 }
42 }
43
44 initialize (attributes, options) {
45 super.initialize(...arguments)

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected