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

Method saveChanges

app/core/treema-ext.js:807–813  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

805module.exports.IDReferenceNode = (IDReferenceNode = class IDReferenceNode extends LatestVersionReferenceNode {
806 // Just for saving the _id
807 saveChanges () {
808 const selected = this.getSelectedResultEl()
809 if (!selected.length) { return }
810 const fullValue = selected.data('value')
811 this.data = fullValue.attributes._id
812 return this.instance = fullValue
813 }
814})
815
816class LevelComponentReferenceNode extends LatestVersionReferenceNode {

Callers

nothing calls this directly

Calls 2

getSelectedResultElMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected