(element, ngAttr)
| 1592 | var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; |
| 1593 | |
| 1594 | function getNgAttribute(element, ngAttr) { |
| 1595 | var attr, i, ii = ngAttrPrefixes.length; |
| 1596 | for (i = 0; i < ii; ++i) { |
| 1597 | attr = ngAttrPrefixes[i] + ngAttr; |
| 1598 | if (isString(attr = element.getAttribute(attr))) { |
| 1599 | return attr; |
| 1600 | } |
| 1601 | } |
| 1602 | return null; |
| 1603 | } |
| 1604 | |
| 1605 | function allowAutoBootstrap(document) { |
| 1606 | var script = document.currentScript; |
no test coverage detected