(valEl, data)
| 539 | |
| 540 | module.exports.StateNode = (StateNode = (SateNode = class SateNode extends TreemaNode.nodeMap.string { |
| 541 | buildValueForDisplay (valEl, data) { |
| 542 | let state |
| 543 | super.buildValueForDisplay(valEl, data) |
| 544 | if (!data) { return } |
| 545 | if (!(state = utils.usStateCodes.getStateNameByStateCode(this.data))) { return console.error(`Couldn't find state ${this.data}`) } |
| 546 | |
| 547 | const stateElement = () => $(`<span> - <i>${state}</i></span>`) |
| 548 | return valEl.find('.treema-shortened').append(stateElement()) |
| 549 | } |
| 550 | })) |
| 551 | |
| 552 | module.exports.PromptTypeNode = class PromptTypeNode extends TreemaNode.nodeMap.string { |
nothing calls this directly
no test coverage detected