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

Method onClick

app/views/editor/level/treema_nodes.js:92–95  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

90 }
91
92 onClick (e) {
93 const btn = $(e.target).closest('.treema-map-button')
94 if (btn.length) { return this.openMap() } else { return super.onClick(...arguments) }
95 }
96
97 openMap () {
98 const modal = new WorldSelectModal({ world: this.settings.world, dataType: 'region', default: this.createWorldBounds(), supermodel: this.settings.supermodel })

Callers

nothing calls this directly

Calls 2

openMapMethod · 0.95
onClickMethod · 0.45

Tested by

no test coverage detected