Merge pull request #496 from Dandandan/master

Don't set innerHTML when contents didn't change
This commit is contained in:
Evan Czaplicki 2014-02-12 11:45:18 +01:00
commit a815b2fbd0

View file

@ -209,7 +209,9 @@ function update(node, curr, next) {
case "RawHtml":
// only markdown blocks have guids, so this must be a text block
if (nextE.guid === null) {
node.innerHTML = nextE.html;
if(currE.html.valueOf() !== nextE.html.valueOf()) {
node.innerHTML = nextE.html;
}
break;
}
if (nextE.guid !== currE.guid) {