MCPcopy Index your code
hub / github.com/angular-ui/ui-router / getFirstAnchor

Function getFirstAnchor

test/angular/1.5/angular.js:4981–4990  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4979 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4980 // and working in all supported browsers.)
4981 function getFirstAnchor(list) {
4982 var result = null;
4983 Array.prototype.some.call(list, function(element) {
4984 if (nodeName_(element) === 'a') {
4985 result = element;
4986 return true;
4987 }
4988 });
4989 return result;
4990 }
4991
4992 function getYOffset() {
4993

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected