empty contents of showHelp() before appending childs; based on https://github.com/openstyles/stylus/pull/119#issuecomment-316372767

This commit is contained in:
Jeremy Schomery 2017-07-19 17:17:55 +04:30 committed by tophf
parent 7affeedd3b
commit 53683dcbbd

View File

@ -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;