empty contents of showHelp() before appending childs; based on https://github.com/openstyles/stylus/pull/119#issuecomment-316372767
This commit is contained in:
parent
7affeedd3b
commit
53683dcbbd
|
@ -1944,6 +1944,7 @@ function showRegExpTester(event, section = getSectionForChild(this)) {
|
|||
function showHelp(title, body) {
|
||||
const div = $('#help-popup');
|
||||
div.classList.remove('big');
|
||||
$('.contents', div).textContent = '';
|
||||
$('.contents', div).appendChild(typeof body === 'string' ? tHTML(body) : body);
|
||||
$('.title', div).textContent = title;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user