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

Method initClass

app/models/CocoModel.js:21–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20class CocoModel extends Backbone.Model {
21 static initClass () {
22 this.prototype.idAttribute = '_id'
23 this.prototype.loaded = false
24 this.prototype.loading = false
25 this.prototype.saveBackups = false
26 this.prototype.notyErrors = true
27 this.schema = null
28
29 this.prototype.attributesWithDefaults = undefined
30
31 this.backedUp = {}
32
33 CocoModel.pollAchievements = _.debounce(CocoModel.pollAchievements, 3000)
34 }
35
36 constructor (attributes, options) {
37 super(...arguments)

Callers 2

pollAchievementsMethod · 0.45
CocoModel.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected