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

Function getFirstAnchor

lib/test/angular/1.7.0/angular.js:5303–5312  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

5301 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
5302 // and working in all supported browsers.)
5303 function getFirstAnchor(list) {
5304 var result = null;
5305 Array.prototype.some.call(list, function(element) {
5306 if (nodeName_(element) === 'a') {
5307 result = element;
5308 return true;
5309 }
5310 });
5311 return result;
5312 }
5313
5314 function getYOffset() {
5315

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected