Skip to content

Commit 85e204b

Browse files
committed
Update diffDOM.js
The 'modifyComment' diff action also needs to apply the textDiff function, as well as modifyTextElement.
1 parent 6fdb82c commit 85e204b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@
11931193
if (!node || typeof node.data === 'undefined') {
11941194
return false;
11951195
}
1196-
node.data = diff.newValue;
1196+
this.textDiff(node, node.data, diff.oldValue, diff.newValue);
11971197
break;
11981198
case 'modifyChecked':
11991199
if (!node || typeof node.checked === 'undefined') {

0 commit comments

Comments
 (0)