Skip to content

Destroy modebar in purge step #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 17, 2015
Merged

Destroy modebar in purge step #125

merged 2 commits into from
Dec 17, 2015

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented Dec 16, 2015

10 seconds of adding code,

30 minutes of hoping the jasmine test would finish without disconnecting...

From issue #120

@etpinard
Copy link
Contributor

@mdtusz if you're up for it, this might a good time to a Plots.purge jasmine test.

  • create a graph
  • purge it
  • check the gd that 'nothing' remains.

@mdtusz
Copy link
Contributor Author

mdtusz commented Dec 16, 2015

purge doesn't remove all traces of the plot - _context is intentionally left. I suppose we can add a test to see if everything except _context is removed.

@mdtusz
Copy link
Contributor Author

mdtusz commented Dec 17, 2015

@perigee the tests don't seem to be running properly on circle - I'm guessing this may be related to the changes you had made yesterday evening?

@etpinard
Copy link
Contributor

@mdtusz I restarted the tests, and things work. CircleCI had a bad day yesterday.

];

Plotly.Plots.purge(gd);
expect(Object.keys(gd)).toEqual(expectedKeys);
Copy link
Contributor

Choose a reason for hiding this comment

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

@mdtusz great test 🎉 thanks for doing this.

@etpinard
Copy link
Contributor

10 seconds of adding code,

30 minutes of hoping the jasmine test would finish without disconnecting...

2 seconds to review.

💃

mdtusz added a commit that referenced this pull request Dec 17, 2015
@mdtusz mdtusz merged commit e0add44 into master Dec 17, 2015
@mdtusz mdtusz deleted the modebar-destructor branch December 17, 2015 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants