@ckeditor/ckeditor5-utils 45.0.0-alpha.6 → 45.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -959,9 +959,9 @@ diff.fastDiff = fastDiff;
959
959
  ];
960
960
  }
961
961
 
962
- const version = '45.0.0-alpha.6';
962
+ const version = '45.0.0-alpha.7';
963
963
  // The second argument is not a month. It is `monthIndex` and starts from `0`.
964
- const releaseDate = new Date(2025, 3, 1);
964
+ const releaseDate = new Date(2025, 3, 2);
965
965
  /* istanbul ignore next -- @preserve */ if (globalThis.CKEDITOR_VERSION) {
966
966
  /**
967
967
  * This error is thrown when, due to a mistake in the way CKEditor 5 was installed,
@@ -2499,7 +2499,7 @@ function DomEmitterMixin(base) {
2499
2499
  class Mixin extends base {
2500
2500
  listenTo(emitter, event, callback, options = {}) {
2501
2501
  // Check if emitter is an instance of DOM Node. If so, use corresponding ProxyEmitter (or create one if not existing).
2502
- if (isNode(emitter) || isWindow(emitter)) {
2502
+ if (isNode(emitter) || isWindow(emitter) || emitter instanceof global.window.EventTarget) {
2503
2503
  const proxyOptions = {
2504
2504
  capture: !!options.useCapture,
2505
2505
  passive: !!options.usePassive
@@ -2513,7 +2513,7 @@ function DomEmitterMixin(base) {
2513
2513
  }
2514
2514
  stopListening(emitter, event, callback) {
2515
2515
  // Check if the emitter is an instance of DOM Node. If so, forward the call to the corresponding ProxyEmitters.
2516
- if (isNode(emitter) || isWindow(emitter)) {
2516
+ if (isNode(emitter) || isWindow(emitter) || emitter instanceof global.window.EventTarget) {
2517
2517
  const proxyEmitters = this._getAllProxyEmitters(emitter);
2518
2518
  for (const proxy of proxyEmitters){
2519
2519
  this.stopListening(proxy, event, callback);