function disableEventListeners() {
  if (this.state.eventsEnabled) {
    if (window.cancelAnimationFrame) {
      cancelAnimationFrame(this.scheduleUpdate);
    }
    this.state = removeEventListeners(this.reference, this.state);
  }
}
function disableEventListeners() {
  if (this.state.eventsEnabled) {
    if (window.cancelAnimationFrame) {
      cancelAnimationFrame(this.scheduleUpdate);
    }
    this.state = removeEventListeners(this.reference, this.state);
  }
}
function disableEventListeners ( ) { if ( this . state . eventsEnabled ) { if ( window . cancelAnimationFrame ) { cancelAnimationFrame ( this . scheduleUpdate ) ; } this . state = removeEventListeners ( this . reference , this . state ) ; } }
It will remove resize/scroll events and won't recalculate popper position
when they are triggered. It also won't trigger onUpdate callback anymore,
unless you call `update` method manually.
@method
@memberof Popper
It will remove resize / scroll events and won t recalculate popper position when they are triggered . It also won t trigger onUpdate callback anymore unless you call update method manually .
Disable event listeners