We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. There is a bag: My situation:
var changes = ChangeStack(); var a = 0; var change = Change.inline(() => a++, () => a--); changes.group(); changes.add(change); print(a); // 1 changes.add(change); print(a); // 2 changes.commit(); print(a); // 4
Situation in your example:
count = 0; changes.group(); var increase = new Change.inline(() => count++, () => count--); changes.add(increase); changes.add(increase); changes.commit(); print(count); // 2 changes.undo(); print(count); // 0
Plugin: undo 1.1.0+1
The text was updated successfully, but these errors were encountered:
Fixed on 1.2.0, Refactored and should work as expected. There is a new interface but I updated the example and should be easier to use
Sorry, something went wrong.
Good!
No branches or pull requests
Hello. There is a bag:
My situation:
Situation in your example:
Plugin: undo 1.1.0+1
The text was updated successfully, but these errors were encountered: