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

Replace deprecated 'arguments.callee' #2878

Merged
merged 8 commits into from
Mar 7, 2019
Merged

Replace deprecated 'arguments.callee' #2878

merged 8 commits into from
Mar 7, 2019

Conversation

Dumluregn
Copy link
Contributor

@Dumluregn Dumluregn commented Mar 1, 2019

What is the purpose of this pull request?

Replacement of deprecated code.

Does your PR contain necessary tests?

Tests already in place.

This PR contains

What changes did you make?

Replaced 'arguments.callee' in 5 files, mostly using named function expressions.

Closes #2741.

@f1ames f1ames self-requested a review March 4, 2019 10:23
@f1ames f1ames self-assigned this Mar 4, 2019
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

LGTM, just few small changes needed.
Also, I think you can get rid of // Replaced arguments.callee (#2741) comments, since in this case they are not necessary.

adapters/jquery.js Outdated Show resolved Hide resolved
plugins/adobeair/plugin.js Outdated Show resolved Hide resolved
plugins/dialog/plugin.js Show resolved Hide resolved
@f1ames f1ames removed their assignment Mar 4, 2019
@Dumluregn Dumluregn requested a review from f1ames March 4, 2019 13:15
@f1ames f1ames self-assigned this Mar 5, 2019
@f1ames
Copy link
Contributor

f1ames commented Mar 5, 2019

Rebased on latest major.

Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

There is still one .callee used in the code - https://github.com/ckeditor/ckeditor-dev/blob/4a9cd5e67e1d5da7406f62bc2ae01a536a008508/adapters/jquery.js#L163.

Please, remember that when PR targets major version, the changelog entry should be placed under upcoming major section in CHANGES.md (here it is 4.12, and it always follows the A.B convention). For minor it should be under minor section (which is now 4.11.4, and follows the A.B.C convention). I fixed it in 419f97b.

@f1ames f1ames removed their assignment Mar 5, 2019
@Dumluregn Dumluregn requested a review from f1ames March 6, 2019 09:38
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

Just one small detail to fix.

adapters/jquery.js Outdated Show resolved Hide resolved
adapters/jquery.js Outdated Show resolved Hide resolved
@Dumluregn Dumluregn requested a review from f1ames March 7, 2019 10:48
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

LGTM👍

@f1ames f1ames merged commit a95275c into major Mar 7, 2019
@CKEditorBot CKEditorBot deleted the t/2741 branch March 7, 2019 16:21
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