MCPcopy
hub / github.com/angular-ui/ui-router / getFirstAnchor

Function getFirstAnchor

test/angular/1.4/angular.js:4773–4782  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4771 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4772 // and working in all supported browsers.)
4773 function getFirstAnchor(list) {
4774 var result = null;
4775 Array.prototype.some.call(list, function(element) {
4776 if (nodeName_(element) === 'a') {
4777 result = element;
4778 return true;
4779 }
4780 });
4781 return result;
4782 }
4783
4784 function getYOffset() {
4785

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected