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

Function transformNode

static/vuejs/vue.js:9095–9116  ·  view source on GitHub ↗
(el, options)

Source from the content-addressed store, hash-verified

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