mxriverlynn / backbone.memento

store and restore your model's state
367 stars 51 forks source link

Getting total list size and current index #16

Open Ratikant01 opened 10 years ago

Ratikant01 commented 10 years ago

Is there any way (public methods?) to get list size and current index to enable/disable undo/redo button?

Ratikant01 commented 10 years ago

Just adding one point to above; can we have two functions something like isRedoable and isUndoable to make Redo and Undo enabled/disabled depending on the size of list we have already saved and current index?