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

Method onClick

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

Source from the content-addressed store, hash-verified

51 }
52
53 onClick (e) {
54 const btn = $(e.target).closest('.treema-map-button')
55 if (btn.length) { return this.openMap() } else { return super.onClick(...arguments) }
56 }
57
58 openMap () {
59 const modal = new WorldSelectModal({ world: this.settings.world, dataType: 'point', default: this.getData(), supermodel: this.settings.supermodel })

Callers

nothing calls this directly

Calls 2

openMapMethod · 0.95
onClickMethod · 0.45

Tested by

no test coverage detected