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

Method updateValue

src/View/Field/Byte.js:22–28  ·  view source on GitHub ↗

* Retrieves value from model and updates it in view. * @return {FieldView} Fluent interface

()

Source from the content-addressed store, hash-verified

20 * @return {FieldView} Fluent interface
21 */
22 updateValue () {
23 const bytes = this.getModel().getValue()
24 let string = ByteEncoder.hexStringFromBytes(bytes)
25 string = StringUtil.chunk(string, 2).join(' ')
26 this._$input.value = string
27 return this
28 }
29
30 /**
31 * Renders view.

Callers

nothing calls this directly

Calls 5

hexStringFromBytesMethod · 0.80
joinMethod · 0.80
getValueMethod · 0.45
getModelMethod · 0.45
chunkMethod · 0.45

Tested by

no test coverage detected