Skip to content

Embedded js: remove more dependency on jquery #9515

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

Merged
merged 7 commits into from
Aug 24, 2022
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Aug 18, 2022

This is on top of #9508


📚 Documentation previews 📚

@stsewd stsewd requested a review from a team as a code owner August 18, 2022 00:10
@stsewd stsewd requested a review from agjohnson August 18, 2022 00:10
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

This looks like a great update to me. I'm 👍 on it, assuming we test that it continues to work. @agjohnson might also have some style feedback, but the small refactors look pretty straightforward.


const rtddata = require('./rtd-data');
const xss = require('xss/lib/index');
const { createDomNode } = require("./utils");
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to specify that we're using this function from utils, or is the compiler smart enough to know what is happening if we add additional utils functions?

Copy link
Contributor

Choose a reason for hiding this comment

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

The compile step will resolve the functions in utils.js for use here, yeah. This syntax will only import createDomNode from utils.js. If more functions are added to utils.js, they won't automatically be imported here, but could be with const { createDomNode, someOtherUtil } = ..

Base automatically changed from remove-some-jquery to main August 23, 2022 19:02
@stsewd stsewd requested a review from a team as a code owner August 23, 2022 19:02
@stsewd stsewd requested a review from humitos August 23, 2022 19:02
@stsewd stsewd merged commit 4ff3917 into main Aug 24, 2022
@stsewd stsewd deleted the remove-more-jquery branch August 24, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants