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

Method openMap

app/views/editor/level/treema_nodes.js:140–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 openMap () {
141 // can't really get the bounds from this data, so will have to hack this solution
142 const options = { world: this.settings.world, dataType: 'ratio-region' }
143 const data = this.getData()
144 if (__guard__(data != null ? data.target : undefined, x => x.x) != null) { options.defaultFromZoom = data }
145 options.supermodel = this.settings.supermodel
146 const modal = new WorldSelectModal(options)
147 modal.callback = this.callback
148 return this.settings.view.openModalView(modal)
149 }
150
151 callback (e) {
152 if (!e) { return }

Callers 1

onClickMethod · 0.95

Calls 1

__guard__Function · 0.70

Tested by

no test coverage detected