Programmer's Guide > Interfaces > ADocument interface > editEnd method
  
editEnd method
This method commits or rolls back the changes made to the document since the matching editBegin call. The commit or roll back does not actually happen until the outermost editEnd call is made. Refer to the description of editBegin for details.
* 
Each call to editBegin must be matched with a call to editEnd. Failure to do so may cause unexpected behavior until Arbortext Editor or Arbortext Publishing Engine is restarted. For language bindings that support exceptions, DOM or AOM calls between editBegin and editEnd calls must be wrapped in a try/catch block so that editEnd is called if an exception is raised.
editEnd(commit )
Parameters
booleancommit
If true, specifies that the change should be committed. If false, changes will be rolled back (undone).
Returns
void