undo-stack
A simple undo/redo library with optional undo chunking (batch undos) and a pluggable logger with nice output for your viewing pleasure.
EXAMPLE
var History = ; var history = logger: consolelog limit: 200; var x = 5; // To add a history stephistory; // x is still 5 // To add and call use .do()// shortcut for .add(stackStepObj, true)history; // x is 8 now history // x is 5 ; // x is 8 again // Chunkshistory // x is 10 // x is 15 ; history // x is 8 ; // x is 15 again
LICENSE
MIT