Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove use of jQuery #63

Open
knownasilya opened this issue Dec 18, 2018 · 8 comments
Open

Remove use of jQuery #63

knownasilya opened this issue Dec 18, 2018 · 8 comments

Comments

@knownasilya
Copy link

Currently jQuery is required, but it doesn't seem that the use is extensive or needed, so it should be rather painless to remove I think.

@XuluWarrior
Copy link

+1 on this as jQuery is now deprecated in Ember
https://deprecations.emberjs.com/v3.x/#toc_jquery-apis

@Turbo87
Copy link
Contributor

Turbo87 commented Jul 24, 2019

@knownasilya liquid-wormhole depends on liquid-fire, which uses jQuery, so removing jQuery from this addon is unfortunately significantly more complicated than it might seem :-/

@knownasilya
Copy link
Author

Might be worthwhile to move to ember-animated? Probably equally hard 😄

@Turbo87
Copy link
Contributor

Turbo87 commented Jul 24, 2019

that is the long-term plan, yes. just needs someone to actually do the work 😉

@pzuraq
Copy link
Owner

pzuraq commented Jul 24, 2019

I'd love to collab with anyone who wants to take converting this and liquid-tether to ember-animated on and help figure out how to do it! I'm swamped as always unfortunately, haven't had time to look, but if anyone wants to do it I definitely think it'd be good to get a new version of this out there. It should probably also wait for in-element to become public API (if it isn't already?) since it can probably be done more efficiently using that API too.

@Alonski
Copy link

Alonski commented Jan 6, 2020

Just updating that I would love this as well :)

@jacobq
Copy link

jacobq commented Jan 8, 2020

It looks like this has been fixed in liquid-fire as of v0.30.0. Remaining clean-up here should be straight-forward. For example, I believe that

const nodes = this.$().children();

can be replaced by

const nodes = this.element.children;

Are you looking for PRs that would remove jQuery dependence without switching to ember-animated (as a stop-gap/short-term solution)?

In case it helps, here's a to-do list to get started (not necessarily exhaustive/accurate).

@mwhitworth
Copy link

liquid-fire will still pass jQuery objects to the wormhole transition, but get(0) or [0] could be used to access the HTML element for now. I suppose that would be the minimum dependency achievable until a liquid-fire update to the transition interface.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants