Skip to content

Commit

Permalink
perf: remove add/remove event polyfills\n\nWe don't polyfill these br…
Browse files Browse the repository at this point in the history
…owsers using core-js (i.e. it most likely doesn't work anyway) and barely anyone is using them nowadays. (#1702)
  • Loading branch information
Thomaash authored Oct 27, 2023
1 parent d0598f9 commit 0fbb834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ class Core {
};

// add event listener to window resize
util.addEventListener(window, 'resize', this._onResize);
window.addEventListener('resize', this._onResize);

//Prevent initial unnecessary redraw
if (me.dom.root) {
Expand All @@ -1288,7 +1288,7 @@ class Core {

// remove event listener on window.resize
if (this._onResize) {
util.removeEventListener(window, 'resize', this._onResize);
window.removeEventListener('resize', this._onResize);
this._onResize = null;
}
}
Expand Down

0 comments on commit 0fbb834

Please sign in to comment.