From 9524de4e3af1bdb300df01166c31dac093df6db4 Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Wed, 3 Apr 2013 13:39:56 -0700 Subject: [PATCH] toggle off list visualization related classes when switching to another visualization --- data/list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/list.js b/data/list.js index 725e89a..8362336 100644 --- a/data/list.js +++ b/data/list.js @@ -180,7 +180,9 @@ function createCell(data){ } -function resetCanvas(){ +function resetCanvas(){ + document.querySelector(".stage").classList.remove("list"); + document.querySelector(".stage").removeChild( document.querySelector(".stage .list-breadcrumb") ); document.querySelector(".stage").removeChild( document.querySelector(".stage .list-table") ); vizcanvas.classList.remove("hide"); }