@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.
@@ -272,6 +272,7 @@ let Splitter = class Splitter extends Component {
272
272
  this.onMouseUpHandler = this.onMouseUp.bind(this);
273
273
  this.onTouchMoveHandler = this.onMouseMove.bind(this);
274
274
  this.onTouchEndHandler = this.onMouseUp.bind(this);
275
+ this.documentClickHandler = this.onDocumentClick.bind(this);
275
276
  this.wrapper = this.element.cloneNode(true);
276
277
  this.wrapperParent = this.element.parentElement;
277
278
  removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
@@ -318,7 +319,7 @@ let Splitter = class Splitter extends Component {
318
319
  this.collapseFlag = true;
319
320
  this.isCollapsed();
320
321
  this.collapseFlag = false;
321
- EventHandler.add(document, 'touchstart click', this.onDocumentClick, this);
322
+ EventHandler.add(document, 'touchstart click', this.documentClickHandler);
322
323
  this.renderComplete();
323
324
  this.element.ownerDocument.defaultView.addEventListener('resize', this.onReportWindowSize, true);
324
325
  EventHandler.add(this.element, 'keydown', this.onMove, this);
@@ -2200,7 +2201,8 @@ let Splitter = class Splitter extends Component {
2200
2201
  destroy() {
2201
2202
  if (!this.isDestroyed) {
2202
2203
  super.destroy();
2203
- EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2204
+ EventHandler.remove(document, 'touchstart click', this.documentClickHandler);
2205
+ this.documentClickHandler = null;
2204
2206
  EventHandler.remove(this.element, 'keydown', this.onMove);
2205
2207
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2206
2208
  while (this.element.attributes.length > 0) {