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

fixing callSuper #3844

Merged
merged 3 commits into from Apr 20, 2017
Merged

fixing callSuper #3844

merged 3 commits into from Apr 20, 2017

Conversation

sirrodgepodge
Copy link
Contributor

@sirrodgepodge sirrodgepodge commented Apr 11, 2017

At present callSuper can go into an infinite loop if it is called above the bottom level in the prototype chain, this fixes that.

This fix allows fixing the IText class to run callSuper('onDeselect').

Also placing an empty function on the fabric.Object class in case there is no onDeselect defined on the parent.

thank you for your help @asturur

@asturur
Copy link
Member

asturur commented Apr 19, 2017

what the hell, once o renamed currentContext with _this it started an infinite loop

@sirrodgepodge
Copy link
Contributor Author

hmmmm yea I can't see any reason that this would happen. I actually tried making this change in editor fabric just to make sure I wasn't crazy. That leaves either the build process for this project or some edge case failure as culprits.

@asturur
Copy link
Member

asturur commented Apr 20, 2017

canvas prebuilt for node linux x64 has been updated and locked down something.

@asturur asturur merged commit e0e431c into fabricjs:master Apr 20, 2017
asturur pushed a commit that referenced this pull request Apr 22, 2017
* fixing callSuper

* fixing lint

* fixed unexpected alias for 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.

None yet

2 participants