MCPcopy
hub / github.com/angular-ui/ui-grid / link

Function link

lib/test/angular/1.6.7/angular.js:7044–7049  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

7042 * bidirectionally links two entries of the LRU linked list
7043 */
7044 function link(nextEntry, prevEntry) {
7045 if (nextEntry !== prevEntry) {
7046 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
7047 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
7048 }
7049 }
7050 }
7051
7052

Callers 2

cacheFactoryFunction · 0.70
refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected