Skip to content

Commit 54bc959

Browse files
committed
Reverse actions for modifyComment/Text, fix #42
1 parent 6531b95 commit 54bc959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diffDOM.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,14 @@
567567
// Comment or text node.
568568
if (t1.nodeName === '#text') {
569569
return [new Diff({
570-
action: 'modifyComment',
570+
action: 'modifyTextElement',
571571
route: route,
572572
oldValue: t1.data,
573573
newValue: t2.data
574574
})];
575575
} else {
576576
return [new Diff({
577-
action: 'modifyTextElement',
577+
action: 'modifyComment',
578578
route: route,
579579
oldValue: t1.data,
580580
newValue: t2.data

0 commit comments

Comments
 (0)