application.undo
Undoes an editor/user action from a specified stack.
Prototype
bOk = application.undo ( hUndoStack )
Parameters
hUndoStack - undo stack handle
Return values
bOk - true on success
Sample
function onViewUndo ( hView, hComponent ) local hResource = this.getViewVariable ( hView, "hCurrentResource" ) if ( hResource ) then local hCurrentUndoStack = application.getUndoStackFromTarget ( hResource ) if ( hCurrentUndoStack ) then application.undo ( hCurrentUndoStack ) end end end
Available since ShiVa 2.0