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

Calling the change event when strokes is set causes an infinite loop #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiandavis
Copy link

Removed the change event trigger on self.strokes because it can cause an infinite loop in p2p connection cases. Thanks for the contribution! Clean and simple library. SVG++

@cecilpeng
Copy link

We should avoid to call it this way. The change callback is equal to receive data, whereas call api is related to the user-interaction or some implict logic. In p2p connection, receive data => paint => change event => here you must eat it. Any p2p connection should consider this.

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

Successfully merging this pull request may close these issues.

2 participants