fires when all data saved and client and server is in sync
dp.attachEvent("onFullSync", function(){ //custom code here });