Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298361

Get rid of jQuery in dialog events.

$
0
0

Problem/Motivation

https://www.drupal.org/project/drupal/issues/2158943 looks like a herculean task. Therefore, it is necessary to break it down into small sub-tasks that will bring us closer to the final result.

Proposed resolution

Remove jQuery Event from dialog events events. And pass the customEvent instead.

API changes

$(window).on('dialog:EVENTTYPE') still BC but their listeners will receive deprecation messages.

$(window).on('dialog:beforecreate') became window.addEventListener('dialogBeforecreate')

Deprecation script checking if old `dialog:beforecreate` presented in $._data(window, 'events');
If presented we trigger old Event and deprecation message.


Viewing all articles
Browse latest Browse all 298361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>