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

Method onClick

ozaria/site/views/play/level/PlayLevelView.js:128–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 }
127
128 onClick () {
129 // workaround to get users out of permanent idle status
130 if (application.userIsIdle) {
131 application.idleTracker.onVisible()
132 }
133
134 // hide context menu if visible
135 if (this.$('#surface-context-menu-view').is(':visible')) {
136 return Backbone.Mediator.publish('level:surface-context-menu-hide', {})
137 }
138 }
139
140 setLevel (level, givenSupermodel) {
141 this.level = level

Callers

nothing calls this directly

Calls 3

onVisibleMethod · 0.80
isMethod · 0.80
publishMethod · 0.80

Tested by

no test coverage detected