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

Method getRenderData

app/views/modal/RevertModal.js:32–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 getRenderData () {
33 const c = super.getRenderData()
34 let models = _.values(CocoModel.backedUp)
35 models = ((() => {
36 const result = []
37 for (const m of Array.from(models)) {
38 if (m.hasLocalChanges()) {
39 result.push(m)
40 }
41 }
42 return result
43 })())
44 c.models = models
45 return c
46 }
47
48 onHidden () {
49 if (this.reloadOnClose) { return location.reload() }

Callers

nothing calls this directly

Calls 1

hasLocalChangesMethod · 0.80

Tested by

no test coverage detected