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

Function refresh

test/angular/1.5/angular.js:6650–6663  ·  view source on GitHub ↗

* makes the `entry` the freshEnd of the LRU linked list

(entry)

Source from the content-addressed store, hash-verified

6648 * makes the `entry` the freshEnd of the LRU linked list
6649 */
6650 function refresh(entry) {
6651 if (entry !== freshEnd) {
6652 if (!staleEnd) {
6653 staleEnd = entry;
6654 } else if (staleEnd === entry) {
6655 staleEnd = entry.n;
6656 }
6657
6658 link(entry.n, entry.p);
6659 link(entry, freshEnd);
6660 freshEnd = entry;
6661 freshEnd.n = null;
6662 }
6663 }
6664
6665
6666 /**

Callers 1

cacheFactoryFunction · 0.70

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected