|
437 | 437 | debug: false,
|
438 | 438 | diffcap: 10, // Limit for how many diffs are accepting when debugging. Inactive when debug is false.
|
439 | 439 | 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. |
442 | 442 | valueDiffing: true, // Whether to take into consideration the values of forms that differ from auto assigned values (when a user fills out a form).
|
443 | 443 | // syntax: textDiff: function (node, currentValue, expectedValue, newValue)
|
444 | 444 | textDiff: function() {
|
|
631 | 631 |
|
632 | 632 | if (this.maxChildCount && t1.childNodes && t2.childNodes && t1.childNodes.length > this.maxChildCount && t2.childNodes.length > this.maxChildCount) {
|
633 | 633 | 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) { |
635 | 635 | if (!isEqual(t1.childNodes[j], t2.childNodes[j])) {
|
636 | 636 | childDiffCount++;
|
637 | 637 | }
|
638 | 638 | j++;
|
639 | 639 | }
|
640 |
| - if (childDiffCount === this.maxChildCountDiffCount) { |
| 640 | + if (childDiffCount === this.maxChildDiffCount) { |
641 | 641 | return [new Diff()
|
642 | 642 | .setValue(t._const.action, t._const.replaceElement)
|
643 | 643 | .setValue(t._const.oldValue, cloneObj(t1))
|
|
0 commit comments