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

Function genClassForVnode

static/vuejs/vue.runtime.common.js:4214–4230  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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

Callers 1

updateClassFunction · 0.70

Calls 2

mergeClassDataFunction · 0.70
genClassFromDataFunction · 0.70

Tested by

no test coverage detected