Name
LzHistory (as2) — Manages interaction with the browser history and back button.
Description
NOTE: You must load your lzx with the lzt=history wrapper HTML to use LzHistory.
The LzHistory service manages interaction with the browser history and back button. Save state as often as you like, and
advance the
history when a new 'page' of values is required.
Details
Static Properties (9)
-
__loadcacheused
-
static private var __loadcacheused = false;
-
__lzcurrstate
-
static private var __lzcurrstate = { ... };
-
__lzdirty
-
static private var __lzdirty = false;
-
__lzhistq
-
static private var __lzhistq;
-
__lzloadcache
-
static private var __lzloadcache = { ... };
-
__lzloading
-
static private var __lzloading = false;
-
offset
-
static public var offset = 0.0;
-
persist
-
static public var persist = true;
-
setCanvasAttribute
-
static private var setCanvasAttribute;
Static Methods (14)
-
callMethod()
-
static private function callMethod(js);
-
clear()
-
static public function clear();
-
commit()
-
static private function commit();
-
getCanvasAttribute()
-
static private function getCanvasAttribute(n);
-
getPersist()
-
static private function getPersist(n);
-
__initPersist()
-
static private function __initPersist();
-
move()
-
static private function move(by);
-
next()
-
static public function next();
Step back one step in the history stack. Adds an item to the browser history
stack.
-
prev()
-
static public function prev();
Step forward one step in the history stack. Adds an item to the browser history
stack.
-
receiveEvent()
-
static private function receiveEvent(n, v);
-
receiveHistory()
-
static private function receiveHistory(o);
-
__restorehistory()
-
static private function __restorehistory();
get history from local object
-
save()
-
static public function save(who, prop, val);
Saves a value and attribute name callback in the current offset of the
history stack. When the browser back button causes the history offset
to change, the attribute will get set to the value saved at that offset,
e.g. scope.setAttribute('attribute_name_to_set', value).
-
setHistory()
-
static private function setHistory(s);
Static Events (1)
-
onoffset (as2)
-
static public event onoffset;
JavaScript Synopsis
public var LzHistory = { ... };