mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
replace classname
This commit is contained in:
@ -59,9 +59,11 @@
|
|||||||
isPanelOpen = false;
|
isPanelOpen = false;
|
||||||
|
|
||||||
// remove from <body> so that no panels should be open
|
// remove from <body> so that no panels should be open
|
||||||
var className = document.body.className;
|
// using the replace method so that it changes the classnames in one go
|
||||||
className = className.replace(PANEL_OPEN_LEFT, "").replace(PANEL_OPEN_RIGHT, "").trim();
|
document.body.className = document.body.className
|
||||||
document.body.className = className;
|
.replace(PANEL_OPEN_LEFT, "")
|
||||||
|
.replace(PANEL_OPEN_RIGHT, "")
|
||||||
|
.trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user