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

Function handleBackButton

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

Source from the content-addressed store, hash-verified

291 }
292
293 function handleBackButton() {
294 //The "current" page is always at the top of the history stack.
295 var current = backStack.pop();
296 if (!current) { return; }
297 var last = backStack[backStack.length - 1];
298 if (!last && backStack.length == 0){
299 last = initialState;
300 }
301 forwardStack.push(current);
302 }
303
304 function handleForwardButton() {
305 //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…