dojo.connect(dojox.off.sync.actions, "onReplay", this, function(action, actionLog){if(action.name == "save"){this._save(action.key, action.value);
}});
// handle syncing
dojo.connect(dojox.off.sync, "onSync", this, function(type){// setup how we download our data from the serverif(type == "download"){this._downloadData();
}elseif(type == "finished"){// refresh our UI when we are finished syncingthis._printAvailableKeys();
}});