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

Method setNeedsUpdate

src/View.js:120–129  ·  view source on GitHub ↗

* Updates this view at next frame. * @return {View} Fluent interface

()

Source from the content-addressed store, hash-verified

118 * @return {View} Fluent interface
119 */
120 setNeedsUpdate () {
121 if (!this._needsUpdate) {
122 this._needsUpdate = true
123 window.requestAnimationFrame(() => {
124 this._needsUpdate = false
125 this.update()
126 })
127 }
128 return this
129 }
130
131 /**
132 * Updates view on model change.

Callers 4

updateViewMethod · 0.80
setTapeMethod · 0.80
renderContentMethod · 0.80
layoutMethod · 0.80

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected