Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getIndex() method #15

Closed
nonplus opened this issue Nov 28, 2015 · 0 comments
Closed

Add getIndex() method #15

nonplus opened this issue Nov 28, 2015 · 0 comments

Comments

@nonplus
Copy link
Contributor

nonplus commented Nov 28, 2015

I'd like to show the undo/redo operations available to my users. I can access the list of operations using getCommands() but currently I can't tell where in the command stack the undo manager is. Adding an getIndex() method that returns the internal index value would solve this for me.

Alternatively, you could expose getUndoCommands() and getRedoCommands() methods.

nonplus added a commit to nonplus/Javascript-Undo-Manager that referenced this issue Nov 28, 2015
nonplus added a commit to nonplus/Javascript-Undo-Manager that referenced this issue Nov 28, 2015
ArthurClemens added a commit that referenced this issue Dec 5, 2015
Implement getIndex() method for #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants