#12974 closed defect (invalid)
"assertion failed in ItemFileWriteStore" in store._saveEverything
Reported by: | vtsuper | Owned by: | Jared Jurkiewicz |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Data | Version: | 1.6.1 |
Keywords: | "assertion failed in ItemFileWriteStore" | Cc: | |
Blocked By: | Blocking: |
Description
the following code will generate err "assertion failed in ItemFileWriteStore?"
function saveDone(){alert('done');} function saveFailed(){alert('fail');} store._saveEverything = function(saveCompleteCallback, saveFailedCallback, newFileContentString){ alert(newFileContentString); } store.save({onComplete: saveDone, onError: saveFailed});
if I change execute 'saveCompleteCallback' and 'saveFailedCallback' once, then no error occurs.
store._saveEverything = function(saveCompleteCallback, saveFailedCallback, newFileContentString){ alert(newFileContentString); saveCompleteCallback(); saveFailedCallback(); }
I must run the those function at least 1 time?
Change History (3)
comment:1 Changed 11 years ago by
Component: | General → Data |
---|---|
Owner: | set to Jared Jurkiewicz |
comment:2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 Changed 11 years ago by
thank you for your suggestion. I know that this is not a bug now...thank you
Note: See
TracTickets for help on using
tickets.
Yes, you have to run one of the callbacks at the end of your save events. Failure to do so leaves the store in a bad state.
If your save is successful, you run the completed callback.
If there is an error, you run the failed callback.
They handle some final post-save events..