Merge pull request #496 from Dandandan/master
Don't set innerHTML when contents didn't change
commita815b2fbd00e76c0109b1ab916fe5d0eb184648c
authorEvan Czaplicki <info@elm-lang.org>
dateWed 12 Feb 2014, 11:45 (13 years ago)
parentf1163758d67035
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) {