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

Function getFirstAnchor

test/angular/1.3/angular.js:4418–4427  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4416 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4417 // and working in all supported browsers.)
4418 function getFirstAnchor(list) {
4419 var result = null;
4420 Array.prototype.some.call(list, function(element) {
4421 if (nodeName_(element) === 'a') {
4422 result = element;
4423 return true;
4424 }
4425 });
4426 return result;
4427 }
4428
4429 function getYOffset() {
4430

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected