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

Function processRawAttrs

static/vuejs/vue.common.js:7934–7948  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected