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

Function getIsBinding

01.GettingStarted/js/vue.js:1611–1625  ·  view source on GitHub ↗

* Get "is" binding from an element. * * @param {Element} el * @param {Object} options * @return {Object|undefined}

(el, options)

Source from the content-addressed store, hash-verified

1609 */
1610
1611 function getIsBinding(el, options) {
1612 // dynamic syntax
1613 var exp = el.getAttribute('is');
1614 if (exp != null) {
1615 if (resolveAsset(options, 'components', exp)) {
1616 el.removeAttribute('is');
1617 return { id: exp };
1618 }
1619 } else {
1620 exp = getBindAttr(el, 'is');
1621 if (exp != null) {
1622 return { id: exp, dynamic: true };
1623 }
1624 }
1625 }
1626
1627 /**
1628 * Option overwriting strategies are functions that handle

Callers 1

checkComponentAttrFunction · 0.70

Calls 2

resolveAssetFunction · 0.70
getBindAttrFunction · 0.70

Tested by

no test coverage detected