Constructordojox.off.sync.ActionLog

dojo.require("dojox.off.sync");
defined in dojox/off/sync.js

Usage

function ()

Jump to PropertiesFunctionsBack to top

void Completely clears this action log of its entries
void Indicates that we should continue processing out list of actions.
FunctionhaltReplay(reason: String)
void Halts replaying this command log.
Number Returns the length of this action log
void Called when we replay our log, for each of our action entries.
For advanced usage; most developers can ignore this. Called when we are finished replaying our commands; called if we have successfully exhausted all of our commands, or if an error occurred during replaying. The default implementation simply continues the synchronization process. Connect to this to register for the event: dojo.connect(dojox.off.sync.actions, "onReplayFinished", someFunc)
void For advanced usage; most developers can ignore this. Replays all of the commands that have been cached in this command log when we go back online; onCommand will be called for each command we have
Function_load(callback)
Function_save(callback)

Jump to FunctionsPropertiesBack to top

to true. For applications that are rapidly adding many action log entries in a short period of time, it can be useful to set this to false and simply call save() yourself when you are ready to persist your command log -- otherwise performance could be slow as the default action is to attempt to persist the actions log constantly with calls to add().
Whether we automatically save the action log after each call to
An array of our action entries, where each one is simply a custom object literal that were passed to add() when this action entry was added.
If true, we are in the middle of replaying a command log; if false, then we are not
If we halted, the reason why