diff --git a/dist/vis.js b/dist/vis.js index fff79531..a43d0fcc 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -15844,8 +15844,10 @@ return /******/ (function(modules) { // webpackBootstrap } // remove event listener on window.resize - util.removeEventListener(window, 'resize', this._onResize); - this._onResize = null; + if (this._onResize) { + util.removeEventListener(window, 'resize', this._onResize); + this._onResize = null; + } }; /**