(element, ngAttr)
| 1624 | var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; |
| 1625 | |
| 1626 | function getNgAttribute(element, ngAttr) { |
| 1627 | var attr, i, ii = ngAttrPrefixes.length; |
| 1628 | for (i = 0; i < ii; ++i) { |
| 1629 | attr = ngAttrPrefixes[i] + ngAttr; |
| 1630 | if (isString(attr = element.getAttribute(attr))) { |
| 1631 | return attr; |
| 1632 | } |
| 1633 | } |
| 1634 | return null; |
| 1635 | } |
| 1636 | |
| 1637 | function allowAutoBootstrap(document) { |
| 1638 | var script = document.currentScript; |
no test coverage detected