MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / refresh

Function refresh

code/songhop/www/lib/angular/angular.js:5591–5604  ·  view source on GitHub ↗

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

(entry)

Source from the content-addressed store, hash-verified

5589 * makes the `entry` the freshEnd of the LRU linked list
5590 */
5591 function refresh(entry) {
5592 if (entry != freshEnd) {
5593 if (!staleEnd) {
5594 staleEnd = entry;
5595 } else if (staleEnd == entry) {
5596 staleEnd = entry.n;
5597 }
5598
5599 link(entry.n, entry.p);
5600 link(entry, freshEnd);
5601 freshEnd = entry;
5602 freshEnd.n = null;
5603 }
5604 }
5605
5606
5607 /**

Callers 1

cacheFactoryFunction · 0.70

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected