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

Function transformNode

static/vuejs/vue.common.js:9101–9122  ·  view source on GitHub ↗
(el, options)

Source from the content-addressed store, hash-verified

9099/* */
9100
9101function transformNode (el, options) {
9102 var warn = options.warn || baseWarn;
9103 var staticClass = getAndRemoveAttr(el, 'class');
9104 if (process.env.NODE_ENV !== 'production' && staticClass) {
9105 var expression = parseText(staticClass, options.delimiters);
9106 if (expression) {
9107 warn(
9108 "class=\"" + staticClass + "\": " +
9109 'Interpolation inside attributes has been removed. ' +
9110 'Use v-bind or the colon shorthand instead. For example, ' +
9111 'instead of <div class="{{ val }}">, use <div :class="val">.'
9112 );
9113 }
9114 }
9115 if (staticClass) {
9116 el.staticClass = JSON.stringify(staticClass);
9117 }
9118 var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
9119 if (classBinding) {
9120 el.classBinding = classBinding;
9121 }
9122}
9123
9124function genData$1 (el) {
9125 var data = '';

Callers

nothing calls this directly

Calls 4

getAndRemoveAttrFunction · 0.70
parseTextFunction · 0.70
getBindingAttrFunction · 0.70
warnFunction · 0.50

Tested by

no test coverage detected