MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / getFirstAnchor

Function getFirstAnchor

lib/test/angular/1.5.0/angular.js:4813–4822  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4811 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4812 // and working in all supported browsers.)
4813 function getFirstAnchor(list) {
4814 var result = null;
4815 Array.prototype.some.call(list, function(element) {
4816 if (nodeName_(element) === 'a') {
4817 result = element;
4818 return true;
4819 }
4820 });
4821 return result;
4822 }
4823
4824 function getYOffset() {
4825

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected