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

Function getFirstAnchor

test/angular/1.2/angular.js:4072–4078  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4070 // and IE can't convert NodeList to an array using [].slice
4071 // TODO(vojta): use filter if we change it to accept lists as well
4072 function getFirstAnchor(list) {
4073 var result = null;
4074 forEach(list, function(element) {
4075 if (!result && lowercase(element.nodeName) === 'a') result = element;
4076 });
4077 return result;
4078 }
4079
4080 function scroll() {
4081 var hash = $location.hash(), elm;

Callers 1

scrollFunction · 0.70

Calls 2

forEachFunction · 0.70
lowercaseFunction · 0.70

Tested by

no test coverage detected