chore(all): Remove bindMethods in favor of Class properties#313
chore(all): Remove bindMethods in favor of Class properties#313jeff-phillips-18 merged 1 commit intopatternfly:masterfrom
Conversation
1f6ccc5 to
1a469d3
Compare
Pull Request Test Coverage Report for Build 1236
💛 - Coveralls |
jeff-phillips-18
left a comment
There was a problem hiding this comment.
Let's deprecate the bindMethods function and console.warn when it's used. That way we can remove it in the next major release.
|
yea - we are using those downstream too (directly from pf-react)...so will just make a note for the next major. 👍 |
be25f7c to
42ca6f1
Compare
|
Updated PR with a console.warn message reflecting that bindMethods is now being deprecated. |
src/common/helpers.js
Outdated
| console.warn(` | ||
| bindMethods usage is being deprecated in favor of class methods. | ||
| bindMethods will be deprecated in next major release | ||
| `); |
There was a problem hiding this comment.
Slight text update:
is deprecated
will be removed
42ca6f1 to
022ef25
Compare
|
@jeff-phillips-18 , I updated the language in the console message. Let me know if you think we need any more changes. Thanks in advance |
|
@chalettu did you rebase the inline edit table? Thanks again for tackling this one! |
022ef25 to
b1b007b
Compare
|
@priley86 , I rebased just now so it should be up to date. Let me know if you have any more questions |
|
Thanks a lot! I will do a quick sanity check in the morning but this looks good ;) |
|
I believe there is still a call to |
|
ok i manually went through all of the storybooks earlier and couldn't find any issues. I'm good to go here once the WizardPatternExample and WizardExample are updated. can you please update/rebase the commits to a single commit or just make the first commit a |
a5ebd43 to
332a20a
Compare
332a20a to
806f8bc
Compare
|
Hi @priley86 , I went ahead and took your advice and collapsed everything into one commit and also took care of the wizard that still had bindMethods. Let me know if you have any questions |
fixes #294