(element, ngAttr)
| 1504 | var ngAttrPrefixes = ['ng-', 'data-ng-', 'ng:', 'x-ng-']; |
| 1505 | |
| 1506 | function getNgAttribute(element, ngAttr) { |
| 1507 | var attr, i, ii = ngAttrPrefixes.length; |
| 1508 | for (i = 0; i < ii; ++i) { |
| 1509 | attr = ngAttrPrefixes[i] + ngAttr; |
| 1510 | if (isString(attr = element.getAttribute(attr))) { |
| 1511 | return attr; |
| 1512 | } |
| 1513 | } |
| 1514 | return null; |
| 1515 | } |
| 1516 | |
| 1517 | function allowAutoBootstrap(document) { |
| 1518 | var script = document.currentScript; |
no test coverage detected