From 415a27aa7487d522e4b43a2482d4ba143c14f69d Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Thu, 30 Apr 2015 14:42:47 +0200 Subject: [PATCH] updated docs, fixed setsize message --- dist/vis.js | 7 +++++-- docs/network/configure.html | 27 +++++++++++++++++---------- docs/network/manipulation.html | 22 ++++++---------------- docs/network/physics.html | 2 +- lib/network/modules/Canvas.js | 7 +++++-- 5 files changed, 34 insertions(+), 31 deletions(-) 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.


-