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

Method saveChanges

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

Source from the content-addressed store, hash-verified

740 }
741
742 saveChanges () {
743 const selected = this.getSelectedResultEl()
744 if (!selected.length) { return }
745 const fullValue = selected.data('value')
746 this.data = {
747 original: fullValue.attributes.original,
748 majorVersion: fullValue.attributes.version.major,
749 }
750 return this.instance = fullValue
751 }
752
753 onDownArrowPressed (e) {
754 if (!this.isEditing()) { return super.onDownArrowPressed(...arguments) }

Callers 1

onClickMethod · 0.95

Calls 2

getSelectedResultElMethod · 0.95
dataMethod · 0.80

Tested by

no test coverage detected