Class com.bumpslide.data.HistoryTracker

com.bumpslide.data.HistoryTracker

Description

Tracks state changes in a model and fires off history events to a history swf

Field Index

addEventListener, HISTORY_HTML_FRAME, HISTORY_HTML_URL, HTTP_URLS_ONLY, removeEventListener

Method Index

debug(), forceClickEvent(), getSerialized(), goto(), init(), unserialize(), updateState()

Field Detail

HTTP_URLS_ONLY

public HTTP_URLS_ONLY

HISTORY_HTML_URL

public HISTORY_HTML_URL:String

HISTORY_HTML_FRAME

public HISTORY_HTML_FRAME:String

addEventListener

public addEventListener:Function

removeEventListener

public removeEventListener:Function

Method Detail

init

function init(state:Model, keys:Array)

Starts tracking changes to passed in Model

Parameters

state
keys

getSerialized

public function getSerialized()

Get serialized version of current state

goto

public function goto(strPath:String)

change state by passing in a serialized string representation of the target state

Parameters

strPath

unserialize

function unserialize(serializedState:String):Object

Unserializes a string representation of state into an object of some sort

Parameters

serializedState

Return

updateState

function updateState(newStateData:Object)

Updates state with data decoded from local connection nav event

forceClickEvent

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

debug

function debug(o):Void