MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / refresh

Function refresh

lib/test/angular/1.8.0/angular.js:7207–7220  ·  view source on GitHub ↗

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

(entry)

Source from the content-addressed store, hash-verified

7205 * makes the `entry` the freshEnd of the LRU linked list
7206 */
7207 function refresh(entry) {
7208 if (entry !== freshEnd) {
7209 if (!staleEnd) {
7210 staleEnd = entry;
7211 } else if (staleEnd === entry) {
7212 staleEnd = entry.n;
7213 }
7214
7215 link(entry.n, entry.p);
7216 link(entry, freshEnd);
7217 freshEnd = entry;
7218 freshEnd.n = null;
7219 }
7220 }
7221
7222
7223 /**

Callers 1

cacheFactoryFunction · 0.70

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected