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

Function link

lib/test/angular/1.8.0/angular.js:7226–7231  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

7224 * bidirectionally links two entries of the LRU linked list
7225 */
7226 function link(nextEntry, prevEntry) {
7227 if (nextEntry !== prevEntry) {
7228 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
7229 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
7230 }
7231 }
7232 }
7233
7234

Callers 2

cacheFactoryFunction · 0.70
refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected