MCPcopy Create free account
hub / github.com/apache/cloudstack / link

Function link

tools/ngui/static/js/lib/angular.js:3491–3496  ·  view source on GitHub ↗

* bidirectionally links two entries of the LRU linked list

(nextEntry, prevEntry)

Source from the content-addressed store, hash-verified

3489 * bidirectionally links two entries of the LRU linked list
3490 */
3491 function link(nextEntry, prevEntry) {
3492 if (nextEntry != prevEntry) {
3493 if (nextEntry) nextEntry.p = prevEntry; //p stands for previous, 'prev' didn't minify
3494 if (prevEntry) prevEntry.n = nextEntry; //n stands for next, 'next' didn't minify
3495 }
3496 }
3497 }
3498
3499

Callers 3

cacheFactoryFunction · 0.85
refreshFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected