var redo : redo;
var redo : redo;
$("#button1").click(function () { if(spread.undoManager().canUndo()){ spread.undoManager().undo(); } }); $("#button2").click(function () { if(spread.undoManager().canRedo()){ spread.undoManager().redo(); } });
$("#button1").click(function () { if(spread.undoManager().canUndo()){ spread.undoManager().undo(); } }); $("#button2").click(function () { if(spread.undoManager().canRedo()){ spread.undoManager().redo(); } });