joint icon indicating copy to clipboard operation
joint copied to clipboard

non-jquery jointjs

Open timoxley opened this issue 10 years ago • 14 comments

Do you think there's a place on the roadmap for a jointjs that removes the dependency on jquery?

timoxley avatar Apr 09 '15 09:04 timoxley

I think if such a thing would be done, the best way to start would be to first create a shim that includes only the jQuery methods that joint uses (in core, plug-ins, and tests).

chill117 avatar May 08 '15 10:05 chill117

This is on the road-map for the second half of this year.

chill117 avatar Feb 05 '16 10:02 chill117

@chill117 great :sparkles:

timoxley avatar Feb 14 '16 08:02 timoxley

Hi guys, it's 2019 and I think it might not be a such a bad idea to bump this thread, especially with 3.0 being recently published. Don't you think it would be nice to replace jQuery with standard commands? I'd love to contribute if there's such an option, but I want to know first if you are wiling to move away from jQuery?

waszqba avatar Aug 13 '19 06:08 waszqba

@chill117 what do you think?

waszqba avatar Aug 13 '19 10:08 waszqba

Hello! Might be better to ask @kumilingus about this one.

chill117 avatar Aug 13 '19 10:08 chill117

Hi @waszqba, sorry for the late reply.

Few notes here. The users are not forced to use any jQuery API while using JointJS. There are a few exceptions where we still expose a jQuery object/features.

  • jQuery.Event in paper event handlers (e.g. evt.data mechanism)
  • jQuery Sizzle non-standard CSS Selectors in cell's definition e.g. attrs: { 'circle:odd': { fill: 'red' }} (this can be deprecated in favour of JSON Markup Selectors/standard CSS Selectors)
  • Backbone.View (depends on jQuery) - events bindings (https://backbonejs.org/#View-events), events namespaces (https://api.jquery.com/event.namespace/)
  • replacing addClass/removeClass jQuery API and similar it's not an issue here
  • I might have missed something

Yes, we're keen to finally get rid of the jQuery. We prefer do it gently though :) So the users/us don't suffer from the breaking changes to much.

kumilingus avatar Aug 19 '19 17:08 kumilingus

Thanks for answer @kumilingus, is there any way I can support you (or at least try to do so) with the transition? I see you are deeply integrated with jQuery, but I believe there might be some way to ditch it easily (not quickly tho).

waszqba avatar Aug 20 '19 06:08 waszqba

That would greatly appreciated :) Here's a list of tasks we might start working on (I'll be adding more items soon).

  • [ ] joint.mvc.View: Events Delegating and Namespaces - e.g similar to this
  • [ ] replace jQuery find() with querySelectorAll() e.g here
  • [ ] replace jQuery methods with native - inspiration here (we can add such a method to util)

kumilingus avatar Aug 22 '19 12:08 kumilingus

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar May 06 '22 09:05 github-actions[bot]

Still relevant I think.

timoxley avatar May 06 '22 09:05 timoxley

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Jul 06 '22 00:07 github-actions[bot]

Bump

timoxley avatar Jul 06 '22 00:07 timoxley

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Nov 05 '22 00:11 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Jan 05 '23 00:01 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Mar 07 '23 00:03 github-actions[bot]

Bump

timoxley avatar Mar 07 '23 02:03 timoxley

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar May 07 '23 00:05 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Aug 19 '23 00:08 github-actions[bot]

Bump

timoxley avatar Aug 19 '23 00:08 timoxley

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Oct 20 '23 00:10 github-actions[bot]

This issue is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Dec 20 '23 00:12 github-actions[bot]

bump

timoxley avatar Dec 20 '23 02:12 timoxley

jQuery removed in v4.0.0.

kumilingus avatar Feb 02 '24 10:02 kumilingus

Whoo congratulations

timoxley avatar Feb 02 '24 10:02 timoxley