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

Method onClickTrackEvent

app/views/HomeCNView.js:132–138  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

130 }
131
132 onClickTrackEvent (e) {
133 let properties
134 if (__guard__($(e.target), x => x.hasClass('track-ab-result'))) {
135 properties = { trackABResult: true }
136 }
137 return this.homePageEvent($(e.target).data('event-action'), properties || {})
138 }
139
140 // Provides a uniform interface for collecting information from the homepage.
141 // Always provides the category Homepage and includes the user role.

Callers

nothing calls this directly

Calls 3

homePageEventMethod · 0.95
dataMethod · 0.80
__guard__Function · 0.70

Tested by

no test coverage detected