MCPcopy Create free account
hub / github.com/angular-ui/ui-router / link

Function link

test/angular/1.5/angular.js:6669–6674  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

6667 * bidirectionally links two entries of the LRU linked list
6668 */
6669 function link(nextEntry, prevEntry) {
6670 if (nextEntry !== prevEntry) {
6671 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
6672 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
6673 }
6674 }
6675 }
6676
6677

Callers 2

cacheFactoryFunction · 0.70
refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected