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

Method onClick

app/core/treema-ext.js:774–782  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

772 }
773
774 onClick (e) {
775 const newSelection = $(e.target).closest('.treema-search-result-row')
776 if (!newSelection.length) { return super.onClick(e) }
777 this.getSelectedResultEl().removeClass('treema-search-selected')
778 newSelection.addClass('treema-search-selected')
779 this.saveChanges()
780 this.flushChanges()
781 return this.display()
782 }
783
784 shouldTryToRemoveFromParent () {
785 if (this.data != null) { return }

Callers

nothing calls this directly

Calls 3

getSelectedResultElMethod · 0.95
saveChangesMethod · 0.95
onClickMethod · 0.45

Tested by

no test coverage detected