Drupal.ajax falls short quite significantly for what we need it to do.

In short:

  • it doesn't have the ability to *detach*. Hence, if we load an in-place editing form with AJAXy stuff in there and then remove the form, those things will continue to exist in Drupal.ajax[…]
  • it's mostly designed with Form API's #ajax property in mind, it seems. We need to use it to load AJAX commands from the server that are specific to the Edit module, but it doesn't support that very well.

In detail: #1533366-3: Simplify and optimize Drupal.ajax() instantiation and implementation.

Comments

Wim Leers’s picture

Version: » 8.x-1.x-dev
Status: Postponed » Closed (won't fix)

This is now tracked over at #1533366: Simplify and optimize Drupal.ajax() instantiation and implementation, no need to also track it here. I will also link to that issue from the Edit D8 core patch issue summary.