MCPcopy Create free account
hub / github.com/cryptii/cryptii / actionDidClick

Method actionDidClick

src/View/Encoder.js:73–81  ·  view source on GitHub ↗
(action, evt)

Source from the content-addressed store, hash-verified

71 }
72
73 actionDidClick (action, evt) {
74 evt.preventDefault()
75
76 // Check if encoder should be reversed
77 const reverse = action === 'decode'
78 if (this.getModel().isReverse() !== reverse) {
79 this.getModel().viewDidReverse(this)
80 }
81 }
82
83 /**
84 * Updates view on model change.

Callers

nothing calls this directly

Calls 3

isReverseMethod · 0.80
viewDidReverseMethod · 0.80
getModelMethod · 0.45

Tested by

no test coverage detected