Changes between Initial Version and Version 1 of Ticket #13037


Ignore:
Timestamp:
May 22, 2011, 4:03:32 AM (9 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13037

    • Property Summary changed from ObjectStore unresolved jr variable to ObjectStore unresolved jr, dirtyObject variables
  • Ticket #13037 – Description

    initial v1  
    1616}}}
    1717
    18 Also presumably that means you are missing a test for revert.
     18Presumably that means you are missing a test for revert.
     19
     20Also, dirtyObject on the second-to-last line of:
     21
     22{{{
     23
     24dojo.connect(kwArgs,"onError",function(){
     25        if(kwArgs.revertOnError !== false){
     26                var postCommitDirtyObjects = dirtyObjects;
     27                dirtyObjects = savingObjects;
     28                var numDirty = 0; // make sure this does't do anything if it is called again
     29                jr.revert(); // revert if there was an error
     30                self._dirtyObjects = postCommitDirtyObjects;
     31        }
     32        else{
     33                self._dirtyObjects = dirtyObject.concat(savingObjects);
     34        }
     35});
     36}}}