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

Method onClick

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

Source from the content-addressed store, hash-verified

133 }
134
135 onClick (e) {
136 const btn = $(e.target).closest('.treema-map-button')
137 if (btn.length) { return this.openMap() } else { return super.onClick(...arguments) }
138 }
139
140 openMap () {
141 // can't really get the bounds from this data, so will have to hack this solution

Callers

nothing calls this directly

Calls 2

openMapMethod · 0.95
onClickMethod · 0.45

Tested by

no test coverage detected