MCPcopy Create free account
hub / github.com/TruthHun/BookStack / genClassForVnode

Function genClassForVnode

static/vuejs/vue.esm.js:4216–4232  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

4214/* */
4215
4216function genClassForVnode (vnode) {
4217 var data = vnode.data;
4218 var parentNode = vnode;
4219 var childNode = vnode;
4220 while (childNode.componentInstance) {
4221 childNode = childNode.componentInstance._vnode;
4222 if (childNode.data) {
4223 data = mergeClassData(childNode.data, data);
4224 }
4225 }
4226 while ((parentNode = parentNode.parent)) {
4227 if (parentNode.data) {
4228 data = mergeClassData(data, parentNode.data);
4229 }
4230 }
4231 return genClassFromData(data)
4232}
4233
4234function mergeClassData (child, parent) {
4235 return {

Callers 1

updateClassFunction · 0.70

Calls 2

mergeClassDataFunction · 0.70
genClassFromDataFunction · 0.70

Tested by

no test coverage detected