Tweaks to panel and my drag panel demo

This commit is contained in:
Max Lynch
2013-08-29 11:53:36 -05:00
parent 5f0daf1870
commit cd5de96666
7 changed files with 589 additions and 57 deletions

View File

@ -59,11 +59,9 @@
isPanelOpen = false;
// remove from <body> so that no panels should be open
// using the replace method so that it changes the classnames in one go
document.body.className = document.body.className
.replace(PANEL_OPEN_LEFT, "")
.replace(PANEL_OPEN_RIGHT, "")
.trim();
var className = document.body.className;
className = className.replace(PANEL_OPEN_LEFT, "").replace(PANEL_OPEN_RIGHT, "").trim();
document.body.className = className;
}
}