MCPcopy Create free account
hub / github.com/mailru/FileAPI / handleBackButton

Function handleBackButton

flash/camera/html-template/history/history.js:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 function handleBackButton() {
285 //The "current" page is always at the top of the history stack.
286 var current = backStack.pop();
287 if (!current) { return; }
288 var last = backStack[backStack.length - 1];
289 if (!last && backStack.length == 0){
290 last = initialState;
291 }
292 forwardStack.push(current);
293 }
294
295 function handleForwardButton() {
296 //summary: private method. Do not call this directly.

Callers 1

checkForUrlChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…