MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / getFirstAnchor

Function getFirstAnchor

code/songhop/www/lib/angular/angular.js:4368–4377  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4366 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4367 // and working in all supported browsers.)
4368 function getFirstAnchor(list) {
4369 var result = null;
4370 Array.prototype.some.call(list, function(element) {
4371 if (nodeName_(element) === 'a') {
4372 result = element;
4373 return true;
4374 }
4375 });
4376 return result;
4377 }
4378
4379 function getYOffset() {
4380

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected