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

Method constructor

app/core/ViewLoadTimer.js:19–25  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

17 }
18
19 constructor (view) {
20 this.view = view
21 this.firstLoad = ViewLoadTimer.firstLoad
22 ViewLoadTimer.firstLoad = false
23 if (!window.performance || !window.performance.now || !window.performance.getEntriesByType) { return }
24 this.t0 = this.firstLoad ? 0 : performance.now()
25 }
26
27 setView (view) {
28 this.view = view

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected