@pendo/agent 2.291.2 → 2.291.3

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/dom.esm.js CHANGED
@@ -7312,7 +7312,7 @@ function getScreenPosition(element) {
7312
7312
  };
7313
7313
  }
7314
7314
 
7315
- var VERSION = '2.291.2_';
7315
+ var VERSION = '2.291.3_';
7316
7316
 
7317
7317
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7318
7318
 
@@ -3904,8 +3904,8 @@ var SERVER = '';
3904
3904
  var ASSET_HOST = '';
3905
3905
  var ASSET_PATH = '';
3906
3906
  var DESIGNER_SERVER = '';
3907
- var VERSION = '2.291.2_';
3908
- var PACKAGE_VERSION = '2.291.2';
3907
+ var VERSION = '2.291.3_';
3908
+ var PACKAGE_VERSION = '2.291.3';
3909
3909
  var LOADER = 'xhr';
3910
3910
  /* eslint-enable agent-eslint-rules/no-gulp-env-references */
3911
3911
  /**
@@ -27309,7 +27309,13 @@ class UberMutationObserver extends EventTarget {
27309
27309
  this.shadowDom.addEventListener('attachShadow', _.bind(this.handleAttachShadow, this));
27310
27310
  this.shadowDom.addEventListener('detachShadow', _.bind(this.handleDetachShadow, this));
27311
27311
  this.addEventListener('mutation', () => {
27312
- this.shadowDom.updateCache();
27312
+ if (this.timeout != null) {
27313
+ clearTimeout(this.timeout);
27314
+ }
27315
+ this.timeout = setTimeout$1(() => {
27316
+ this.shadowDom.updateCache();
27317
+ this.timeout = null;
27318
+ }, 0);
27313
27319
  });
27314
27320
  }
27315
27321
  initialize(pendo, PluginAPI) {
@@ -27337,6 +27343,10 @@ class UberMutationObserver extends EventTarget {
27337
27343
  teardown() {
27338
27344
  this.observers.clear();
27339
27345
  this.shadowDom.teardown();
27346
+ if (this.timeout != null) {
27347
+ clearTimeout(this.timeout);
27348
+ this.timeout = null;
27349
+ }
27340
27350
  }
27341
27351
  dispatchMutationEvent(mutation) {
27342
27352
  this.dispatchEvent({