Merge pull request #496 from Dandandan/master
Don't set innerHTML when contents didn't change
This commit is contained in:
commit
a815b2fbd0
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue