@syncfusion/ej2-layouts 33.1.47 → 33.2.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.
@@ -295,6 +295,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
295
295
  this.onMouseUpHandler = this.onMouseUp.bind(this);
296
296
  this.onTouchMoveHandler = this.onMouseMove.bind(this);
297
297
  this.onTouchEndHandler = this.onMouseUp.bind(this);
298
+ this.documentClickHandler = this.onDocumentClick.bind(this);
298
299
  this.wrapper = this.element.cloneNode(true);
299
300
  this.wrapperParent = this.element.parentElement;
300
301
  removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
@@ -341,7 +342,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
341
342
  this.collapseFlag = true;
342
343
  this.isCollapsed();
343
344
  this.collapseFlag = false;
344
- EventHandler.add(document, 'touchstart click', this.onDocumentClick, this);
345
+ EventHandler.add(document, 'touchstart click', this.documentClickHandler);
345
346
  this.renderComplete();
346
347
  this.element.ownerDocument.defaultView.addEventListener('resize', this.onReportWindowSize, true);
347
348
  EventHandler.add(this.element, 'keydown', this.onMove, this);
@@ -2232,7 +2233,8 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
2232
2233
  Splitter.prototype.destroy = function () {
2233
2234
  if (!this.isDestroyed) {
2234
2235
  _super.prototype.destroy.call(this);
2235
- EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2236
+ EventHandler.remove(document, 'touchstart click', this.documentClickHandler);
2237
+ this.documentClickHandler = null;
2236
2238
  EventHandler.remove(this.element, 'keydown', this.onMove);
2237
2239
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2238
2240
  while (this.element.attributes.length > 0) {