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

Function processRawAttrs

static/vuejs/vue.esm.js:7932–7946  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

7930}
7931
7932function processRawAttrs (el) {
7933 var l = el.attrsList.length;
7934 if (l) {
7935 var attrs = el.attrs = new Array(l);
7936 for (var i = 0; i < l; i++) {
7937 attrs[i] = {
7938 name: el.attrsList[i].name,
7939 value: JSON.stringify(el.attrsList[i].value)
7940 };
7941 }
7942 } else if (!el.pre) {
7943 // non root node in pre blocks with no attributes
7944 el.plain = true;
7945 }
7946}
7947
7948function processKey (el) {
7949 var exp = getBindingAttr(el, 'key');

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected