Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Replace ASButtonState with ASControlState#1038

Merged
appleguy merged 4 commits intofacebookarchive:masterfrom
binl:bl_button_states
Jan 6, 2016
Merged

Replace ASButtonState with ASControlState#1038
appleguy merged 4 commits intofacebookarchive:masterfrom
binl:bl_button_states

Conversation

@binl
Copy link
Copy Markdown

@binl binl commented Jan 6, 2016

following the UIControl design, removed ASButtonState from ASButtonNode and added ASControlState to ASControlNodes, also added a selectedState to all ASControlNodes.

@appleguy @connor

@facebook-github-bot
Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

Comment thread AsyncDisplayKit/ASControlNode.h Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@binl missing a c in "isSelected"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops..

@facebook-github-bot
Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Comment thread AsyncDisplayKit/ASButtonNode.mm Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling typo here. should be _selectedAttributedTitle

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=。= dang... thanks!

appleguy added a commit that referenced this pull request Jan 6, 2016
[ASButtonNode] Use ASControlState instead of declaring a unique ASButtonState type.
@appleguy appleguy merged commit fa9668a into facebookarchive:master Jan 6, 2016
@appleguy appleguy added this to the 1.9.5 milestone Jan 6, 2016
aimalygin pushed a commit to aimalygin/AsyncDisplayKit that referenced this pull request Sep 16, 2020
- The issues in facebookarchive#1038 are not explained.
- In `ASCollectionViewTests` do not mock every `collectionViewLayout`, only do it for the test that requires it. In addition, call `-stopMocking` when done. OCMock 3.6 found this code using stuff after it should have been.
- 5c42bb4 says the layer tests are not typically run, but they are in the project. That diff refers to ASUIViewTests being skipped, but those tests do not exist. So I've just disabled them in this diff. It is not clear how they ever worked.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants