We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e328f commit 00edf56Copy full SHA for 00edf56
test/jasmine/assets/create_graph_div.js
@@ -1,9 +1,8 @@
1
'use strict';
2
3
-module.exports = function createGraphDiv(id) {
4
- id = (id === undefined) ? 'graph' : id;
+module.exports = function createGraphDiv() {
5
var gd = document.createElement('div');
6
- gd.id = id;
+ gd.id = 'graph';
7
document.body.appendChild(gd);
8
9
// force the graph to be at position 0,0 no matter what
test/jasmine/assets/destroy_graph_div.js
@@ -1,8 +1,7 @@
-module.exports = function destroyGraphDiv(id) {
- var gd = document.getElementById(id);
+module.exports = function destroyGraphDiv() {
+ var gd = document.getElementById('graph');
if(gd) document.body.removeChild(gd);
};
0 commit comments