MCPcopy
hub / github.com/MithrilJS/mithril.js / update

Function update

render/tests/test-onupdate.js:170–176  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

168 render(root, [updated])
169
170 function update(vnode) {
171 called = true
172
173 o(vnode.dom.parentNode.attributes["id"].value).equals("11")
174 o(vnode.dom.attributes["id"].value).equals("22")
175 o(vnode.dom.childNodes[0].attributes["id"].value).equals("33")
176 }
177 o(called).equals(true)
178 })
179 o("does not set onupdate as an event handler", function() {

Callers 2

routeFunction · 0.50
routeFunction · 0.50

Calls 1

oFunction · 0.85

Tested by

no test coverage detected