Skip to content

Commit 2f4c57b

Browse files
committed
Making a new graph now clears the background too.
1 parent b26e55b commit 2f4c57b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graph-creator",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"main": "index.html",
55
"window": {
66
"height": 1024,

src/cytoInit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function renderGraph(img){
4141
if(img != null){
4242
$('#container').css('background-image', 'url(' + img.src + ')');
4343
}
44+
else{
45+
$('#container').css('background-image', 'none');
46+
}
4447

4548
//Bind our event handlers
4649
cy.on('tap', 'edge', removeEdge);

0 commit comments

Comments
 (0)