* Get "is" binding from an element. * * @param {Element} el * @param {Object} options * @return {Object|undefined}
(el, options)
| 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 |
no test coverage detected