Skip to content

Commit 02370f5

Browse files
committed
maxChildCountDiffCount => maxChildDiffCount
1 parent 89e10a9 commit 02370f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

diffDOM.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@
437437
debug: false,
438438
diffcap: 10, // Limit for how many diffs are accepting when debugging. Inactive when debug is false.
439439
maxDepth: false, // False or a numeral. If set to a numeral, limits the level of depth that the the diff mechanism looks for differences. If false, goes through the entire tree.
440-
maxChildCount: false, // False or a numeral. If set to a numeral, does not try to diff the contents of nodes with more children if there are more than maxChildCountDiffCount differences among child nodes.
441-
maxChildCountDiffCount: 3, // Numeral. See maxChildCount.
440+
maxChildCount: false, // False or a numeral. If set to a numeral, does not try to diff the contents of nodes with more children if there are more than maxChildDiffCount differences among child nodes.
441+
maxChildDiffCount: 3, // Numeral. See maxChildCount.
442442
valueDiffing: true, // Whether to take into consideration the values of forms that differ from auto assigned values (when a user fills out a form).
443443
// syntax: textDiff: function (node, currentValue, expectedValue, newValue)
444444
textDiff: function() {
@@ -631,13 +631,13 @@
631631

632632
if (this.maxChildCount && t1.childNodes && t2.childNodes && t1.childNodes.length > this.maxChildCount && t2.childNodes.length > this.maxChildCount) {
633633
var childNodesLength = t1.childNodes.length < t2.childNodes.length ? t1.childNodes.length : t2.childNodes.length, childDiffCount = 0, j = 0;
634-
while (childDiffCount < this.maxChildCountDiffCount && j < childNodesLength) {
634+
while (childDiffCount < this.maxChildDiffCount && j < childNodesLength) {
635635
if (!isEqual(t1.childNodes[j], t2.childNodes[j])) {
636636
childDiffCount++;
637637
}
638638
j++;
639639
}
640-
if (childDiffCount === this.maxChildCountDiffCount) {
640+
if (childDiffCount === this.maxChildDiffCount) {
641641
return [new Diff()
642642
.setValue(t._const.action, t._const.replaceElement)
643643
.setValue(t._const.oldValue, cloneObj(t1))

0 commit comments

Comments
 (0)