Undo implementation - DOM manipulations

dom, javascript

Solution

Have a look at the jQuery plug-in "undoable".

Problem

Is there a library that can be used for implementing undo/redo functionality for DOM element manipulations in JavaScript? I'm writing an prototype.js app (memonaut) that moves around DOM elements, enables editing and deletion of those elements. There are event-handlers and other objects associated with each element operated upon. Not sure whether I need to roll my own implementation of the Command pattern for this. Surely, there must be something available? If not, suggestions and pointers would be a great help.

Original source