diff --git a/dist/vis.js b/dist/vis.js index 68c27f38..2a4415c9 100644 --- a/dist/vis.js +++ b/dist/vis.js @@ -21849,6 +21849,7 @@ return /******/ (function(modules) { // webpackBootstrap this.body = body; this.pixelRatio = 1; this.resizeTimer = undefined; + this.resizeFunction = this._onResize.bind(this); this.options = {}; this.defaultOptions = { @@ -21901,7 +21902,8 @@ return /******/ (function(modules) { // webpackBootstrap this.resizeTimer = setInterval(function () { _this2.setSize();_this2.body.emitter.emit('_requestRedraw'); }, 1000); - util.addEventListener(window, 'resize', this._onResize); + this.resizeFunction = this._onResize.bind(this); + util.addEventListener(window, 'resize', this.resizeFunction); } } }, { @@ -21911,7 +21913,8 @@ return /******/ (function(modules) { // webpackBootstrap if (this.resizeTimer !== undefined) { clearInterval(this.resizeTimer); } - util.removeEventListener(window, 'resize', this._onResize); + util.removeEventListener(window, 'resize', this.resizeFunction); + this.resizeFunction = undefined; } }, { key: '_onResize', diff --git a/docs/network/configure.html b/docs/network/configure.html index 035f9465..b3547668 100644 --- a/docs/network/configure.html +++ b/docs/network/configure.html @@ -87,23 +87,30 @@

Options

The options for the canvas have to be contained in an object titled 'configure'.

-

Click on the options shown to show how these options are supposed to be used.

+

Click on the full options or shorthand options to show how these options are supposed to be used.


-