-
Notifications
You must be signed in to change notification settings - Fork 529
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
Error in PubSubClass after resizing #51
Comments
Are you able to trigger this error on resize even if no signature is drawn? |
Yes we are. I managed to get it narrowed down. We have jSignature being used inside of a popup, and the first time that popup opens the user can do all the resizing they want, but they can also close that popup and reopen it a second time, and that second time they open it, it triggers the error if they do any resizing. We are calling reset on jSignature before they close the popup, but is there some sort of state data that is not being cleared? |
I suspect that the subscribed event for the first instance was still getting triggered and I suppose you are initializing a new jSignature instance? To confirm, can you run |
This is the issue I tried to fix with willowsystems#44. I'm confused about what the right upstream repo for this library is. The 1st google hit for "jsignature" points to http://willowsystems.github.io/jSignature/#/about/ which points to https://github.com/willowsystems/jSignature which says it's a fork of this one, but differs in exactly zero commits. Issues and pull requests made against willowsystems get no response. |
Willowsystem's version is a fork of my jSignature. I am not affiliated with them so I do not monitor their repo. I assume they are the first google hit because they have better SEO. If your fix works, send me a PR and I'll have a look and merge to my repo if it looks good. |
I rebased my fix on top of your master, and I see that you already fixed the TypeError in PubSubClass.unsubscribe(), in a slightly different way. I haven't had the time to fix the TypeError in PubSubClass.publish() yet. I'll submit a PR when I do. |
The problem was a callback registered with PubSubClass that wanted to change the callback list, while PubSubClass was busy iterating over it. Fixes brinley#51
did this error get fixed? I'm getting this error now. |
Unable to get property '0' of undefined or null reference Stack: jSignature.js Line Number:72
After we do a window resize we occasionally get this error. This is hard to reproduce for us, but happening fairly regularly at one of our customers sites.
If you need any more information, let me know
The text was updated successfully, but these errors were encountered: