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

Function processRawAttrs

static/vuejs/vue.js:7928–7942  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected