MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / extractAttrs

Function extractAttrs

01.GettingStarted/js/vue.js:7728–7732  ·  view source on GitHub ↗

* Helper to extract a component container's attributes * into a plain object array. * * @param {Element} el * @return {Array}

(el)

Source from the content-addressed store, hash-verified

7726 */
7727
7728 function extractAttrs(el) {
7729 if (el.nodeType === 1 && el.hasAttributes()) {
7730 return toArray(el.attributes);
7731 }
7732 }
7733
7734 /**
7735 * Merge the attributes of two elements, and make sure

Callers 2

transcludeFunction · 0.70
transcludeTemplateFunction · 0.70

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected