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

Method constructor

app/views/core/AchievementPopup.js:25–34  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

23 }
24
25 constructor (options) {
26 super(options)
27 this.achievement = options.achievement
28 this.earnedAchievement = options.earnedAchievement
29 this.container = options.container || this.getContainer()
30 this.popup = options.container
31 if (this.popup == null) { this.popup = true }
32 if (this.popup) { this.className += ' popup' }
33 this.render()
34 }
35
36 calculateData () {
37 let achievedXP, data

Callers

nothing calls this directly

Calls 2

getContainerMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected