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

Function getFirstAnchor

test/angular/1.7/angular.js:5353–5362  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

5351 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
5352 // and working in all supported browsers.)
5353 function getFirstAnchor(list) {
5354 var result = null;
5355 Array.prototype.some.call(list, function(element) {
5356 if (nodeName_(element) === 'a') {
5357 result = element;
5358 return true;
5359 }
5360 });
5361 return result;
5362 }
5363
5364 function getYOffset() {
5365

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected