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

Function getFirstAnchor

lib/test/angular/1.4.3/angular.js:4653–4662  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

4651 // (using `Array#some()` instead of `angular#forEach()` since it's more performant
4652 // and working in all supported browsers.)
4653 function getFirstAnchor(list) {
4654 var result = null;
4655 Array.prototype.some.call(list, function(element) {
4656 if (nodeName_(element) === 'a') {
4657 result = element;
4658 return true;
4659 }
4660 });
4661 return result;
4662 }
4663
4664 function getYOffset() {
4665

Callers 1

scrollFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected