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

Function link

lib/test/angular/1.7.0/angular.js:7102–7107  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

7100 * bidirectionally links two entries of the LRU linked list
7101 */
7102 function link(nextEntry, prevEntry) {
7103 if (nextEntry !== prevEntry) {
7104 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
7105 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
7106 }
7107 }
7108 }
7109
7110

Callers 2

cacheFactoryFunction · 0.70
refreshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected