* @private
()
| 552 | * @private |
| 553 | */ |
| 554 | _checkEventBindings() { |
| 555 | const options = this.options; |
| 556 | const existingEvents = new Set(Object.keys(this._listeners)); |
| 557 | const newEvents = new Set(options.events); |
| 558 | |
| 559 | if (!setsEqual(existingEvents, newEvents) || !!this._responsiveListeners !== options.responsive) { |
| 560 | // The configured events have changed. Rebind. |
| 561 | this.unbindEvents(); |
| 562 | this.bindEvents(); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | /** |
| 567 | * @private |
no test coverage detected