Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Deep Cloning Objects in JavaScript, the Modern Way. Parent comment
For example, I create a revision of a store (a deep clone) and apply the undo frames one-by-one.
Each undo frame has the setter name and its arguments. IOW, the frames contain what changed, such as:
[ [BASE.setCard, 'some-id', CF.title, 'The New Title'], …more frames ]
https://blog.uidrafter.com/architecture-of-a-desktop-alike-s...
For example, I create a revision of a store (a deep clone) and apply the undo frames one-by-one.
Each undo frame has the setter name and its arguments. IOW, the frames contain what changed, such as:
Here's a post with more detailshttps://blog.uidrafter.com/architecture-of-a-desktop-alike-s...