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

Function getFirstAnchor

test/angular/1.6/angular.js:5327–5336  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

5325 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
5326 // and working in all supported browsers.)
5327 function getFirstAnchor(list) {
5328 var result = null;
5329 Array.prototype.some.call(list, function(element) {
5330 if (nodeName_(element) === 'a') {
5331 result = element;
5332 return true;
5333 }
5334 });
5335 return result;
5336 }
5337
5338 function getYOffset() {
5339

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected