Sha256: a7943b7e31ee48d95d26819b8f3cbeb98dfc842fa7a76ba518d7ae232c210f8f
Contents?: true
Size: 367 Bytes
Versions: 64
Compression:
Stored size: 367 Bytes
Contents
var links = inDocument.getElementsByTagName('a'); var candidateLinks = $A(links).select(function(candidateLink) { return PatternMatcher.matches(locator, getText(candidateLink)); }); if (candidateLinks.length == 0) { return null; } candidateLinks = candidateLinks.sortBy(function(s) { return s.length * -1; }); //reverse length sort return candidateLinks.first();
Version data entries
64 entries across 64 versions & 21 rubygems