on master help sign in
Don't set innerHTML when contents didn't change
commit8d670355a78d515554d9cfebbdee2ce90aa0515a authorDanDanDan <danielheres@gmail.com> dateTue 11 Feb 2014, 15:54 (13 years ago) parenta5e1aeb
1 file changed+3−1
runtime/Render/Element.js+3−1
runtime/Render/Element.js+3−1
@@ -209,7 +209,9 @@ function update(node, curr, next) {
209209 case "RawHtml":
210210 // only markdown blocks have guids, so this must be a text block
211211 if (nextE.guid === null) {
212− node.innerHTML = nextE.html;
212+ if(currE.html.valueOf() !== nextE.html.valueOf()) {
213+ node.innerHTML = nextE.html;
214+ }
213215 break;
214216 }
215217 if (nextE.guid !== currE.guid) {