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

Method buildValueForDisplay

app/core/treema-ext.js:79–88  ·  view source on GitHub ↗
(valEl, data)

Source from the content-addressed store, hash-verified

77
78class CinematicDialogTreema extends TreemaObjectNode {
79 buildValueForDisplay (valEl, data) {
80 if ((data != null ? data.programmingLanguageFilter : undefined) === 'javascript') {
81 valEl.css('border', 'solid 4px yellow')
82 } else if ((data != null ? data.programmingLanguageFilter : undefined) === 'python') {
83 valEl.css('border', 'solid 4px blue')
84 }
85
86 // Calling method on parent class: https://stackoverflow.com/a/11520286
87 return super.buildValueForDisplay(valEl, data)
88 }
89}
90
91module.exports.LiveEditingMarkup = (LiveEditingMarkup = (function () {

Callers

nothing calls this directly

Calls 1

buildValueForDisplayMethod · 0.45

Tested by

no test coverage detected