-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix(): set/discard active object return value #8672
Conversation
Build Stats
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this is a scoped PR
Ready
@ShaMan123 i m asking to restore ( a better version of ) the previous JSDOC without usin Just let's not add protected, then i ll address the JSDOC on top of it being more specific on how or why you could call those directly. |
(i would change the JSDOC myself but i have no time right now) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Motivation
Working on #8665 made me need return values and then I encountered strange behavior
Description
setActiveObject
anddiscardActiveObject
were chainable. We removed that but didn't return the needed values from_setActiveObject
and_discardActiveObject
.Then I saw that
_discardActiveObject
return a value that is different than what is documented (true if deselected) and not aligned with_setActiveObject
so I fixed it.That surfaced another edge case when clearing canvas and having an active object that refuses to deselect clear can't discard it. So I fixed that as well and added tests.
Changes
Gist
In Action