(element, ngAttr)
| 1632 | var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; |
| 1633 | |
| 1634 | function getNgAttribute(element, ngAttr) { |
| 1635 | var attr, i, ii = ngAttrPrefixes.length; |
| 1636 | for (i = 0; i < ii; ++i) { |
| 1637 | attr = ngAttrPrefixes[i] + ngAttr; |
| 1638 | if (isString(attr = element.getAttribute(attr))) { |
| 1639 | return attr; |
| 1640 | } |
| 1641 | } |
| 1642 | return null; |
| 1643 | } |
| 1644 | |
| 1645 | function allowAutoBootstrap(document) { |
| 1646 | var script = document.currentScript; |
no test coverage detected