com.bumpslide.data.HistoryTracker
Tracks state changes in a model and fires off history events to a history swf
public HTTP_URLS_ONLYpublic HISTORY_HTML_URL:Stringpublic HISTORY_HTML_FRAME:Stringpublic addEventListener:Functionpublic removeEventListener:Functionfunction init(state:Model, keys:Array)Starts tracking changes to passed in Model
state | |
keys |
public function goto(strPath:String)change state by passing in a serialized string representation of the target state
strPath |
function unserialize(serializedState:String):ObjectUnserializes a string representation of state into an object of some sort
serializedState |
function updateState(newStateData:Object)Updates state with data decoded from local connection nav event
public function forceClickEvent()Force a browse history event for the current state One sample use case for this is when we want to save form vars to history before showing results so that form contents are filled in when the user hits the back button. client code needs to wait for the (onForcedStateCallback) event before changing view state to search results screen