Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Fix missing reference to Graph3D instance in DataGroup #3255

Merged
merged 3 commits into from
Jul 16, 2017

Conversation

wimrijnders
Copy link
Contributor

Fix for #3251.

A reference was missed in DataGroup.reload() during refactoring.
Rather than fix this method, it has been removed and the logic moved to Graph3d.
This makes for somewhat cleaner code.

Fix for almende#3251

A reference was missed in DataGroup.reload() during refactoring.
Rather than fix this method, it has been removed and the logic moved to `Graph3d`.
This makes for somewhat cleaner code.
bradh
bradh previously approved these changes Jul 14, 2017
Copy link
Contributor

@bradh bradh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the trivial comment, looks OK.

@@ -702,7 +702,7 @@ Graph3d.prototype.setOptions = function (options) {
this._setSize(this.width, this.height);

// re-load the data
this.dataGroup.reload();
this.setData(this.dataGroup.getDataTable());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tab vs space?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space of course. Spaces rule!

wimrijnders added a commit to wimrijnders/vis that referenced this pull request Jul 15, 2017
This adds a unit test for PR almende#3255 which fixes almende#3251.
The unit test will fail without the PR merged.

**NOTE:** This also adds module `canvas`, required for the unit test. This module
proved to be quite fickly to install properly. During reviewing, please pay special
attention to the proper installation of this modul. I.e. do following to test:

```
> npm install                      # If no errors, continue
> npm test /tests/Graph3D.test.js  # Run unit test isolated
```
@yotamberk yotamberk merged commit 979b53a into almende:develop Jul 16, 2017
@wimrijnders wimrijnders deleted the issue3251 branch July 17, 2017 04:29
yotamberk pushed a commit that referenced this pull request Jul 20, 2017
* Add unit tests for Graph3D issue

This adds a unit test for PR #3255 which fixes #3251.
The unit test will fail without the PR merged.

**NOTE:** This also adds module `canvas`, required for the unit test. This module
proved to be quite fickly to install properly. During reviewing, please pay special
attention to the proper installation of this modul. I.e. do following to test:

```
> npm install                      # If no errors, continue
> npm test /tests/Graph3D.test.js  # Run unit test isolated
```

* Fix for travis-cl

* Add giflib to travis test definition

* Add libgif to travis test definition - take 2

* Proper setup and teardown for jsdom-global

* Minor fixes and cleanup
agnesnanxin pushed a commit to agnesnanxin/vis that referenced this pull request Aug 30, 2017
* Fix missing reference to Graph3D instance in DataGroup

Fix for almende#3251

A reference was missed in DataGroup.reload() during refactoring.
Rather than fix this method, it has been removed and the logic moved to `Graph3d`.
This makes for somewhat cleaner code.

* Fixes due to review
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* Fix missing reference to Graph3D instance in DataGroup

Fix for almende#3251

A reference was missed in DataGroup.reload() during refactoring.
Rather than fix this method, it has been removed and the logic moved to `Graph3d`.
This makes for somewhat cleaner code.

* Fixes due to review
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* Add unit tests for Graph3D issue

This adds a unit test for PR almende#3255 which fixes almende#3251.
The unit test will fail without the PR merged.

**NOTE:** This also adds module `canvas`, required for the unit test. This module
proved to be quite fickly to install properly. During reviewing, please pay special
attention to the proper installation of this modul. I.e. do following to test:

```
> npm install                      # If no errors, continue
> npm test /tests/Graph3D.test.js  # Run unit test isolated
```

* Fix for travis-cl

* Add giflib to travis test definition

* Add libgif to travis test definition - take 2

* Proper setup and teardown for jsdom-global

* Minor fixes and cleanup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants