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

Method initialize

app/models/ThangType.js:74–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 initialize () {
75 super.initialize()
76 this.building = {}
77 this.spriteSheets = {}
78 if (utils.showOzaria()) {
79 this.textureAtlases = new Map()
80
81 // Vue recursively traverses objects making them reactive.
82 // Our thangs are referenced from a reactive object somewhere in the
83 // codebase adding a large performance hit with no functional benefit.
84 //
85 // This line tricks Vue into thinking it has already made this ThangType
86 // reactive.
87 return Vue.nonreactive(this)
88 }
89 }
90
91 // # Testing memory clearing
92 // f = =>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected