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

Function genClassForVnode

static/vuejs/vue.runtime.js:4208–4224  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

4206/* */
4207
4208function genClassForVnode (vnode) {
4209 var data = vnode.data;
4210 var parentNode = vnode;
4211 var childNode = vnode;
4212 while (childNode.componentInstance) {
4213 childNode = childNode.componentInstance._vnode;
4214 if (childNode.data) {
4215 data = mergeClassData(childNode.data, data);
4216 }
4217 }
4218 while ((parentNode = parentNode.parent)) {
4219 if (parentNode.data) {
4220 data = mergeClassData(data, parentNode.data);
4221 }
4222 }
4223 return genClassFromData(data)
4224}
4225
4226function mergeClassData (child, parent) {
4227 return {

Callers 1

updateClassFunction · 0.70

Calls 2

mergeClassDataFunction · 0.70
genClassFromDataFunction · 0.70

Tested by

no test coverage detected