From 53683dcbbd7d7a4db6fe1722f50fcac67eede694 Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Wed, 19 Jul 2017 17:17:55 +0430 Subject: [PATCH] empty contents of showHelp() before appending childs; based on https://github.com/openstyles/stylus/pull/119#issuecomment-316372767 --- edit/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/edit/edit.js b/edit/edit.js index 7d1e382e..c33dcb36 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -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;