Skip to content

Commit 433b534

Browse files
committed
camel case and mark innerDone first time when done
1 parent 06586b9 commit 433b534

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

diffDOM.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,8 @@
697697
findInnerDiff: function(t1, t2, route) {
698698

699699
var subtrees = (t1.childNodes && t2.childNodes) ? markSubTrees(t1, t2) : [],
700-
t1_child_nodes = t1.childNodes ? t1.childNodes : [],
701-
t2_child_nodes = t2.childNodes ? t2.childNodes : [],
700+
t1ChildNodes = t1.childNodes ? t1.childNodes : [],
701+
t2ChildNodes = t2.childNodes ? t2.childNodes : [],
702702
childNodesLengthDifference, diffs = [],
703703
index = 0,
704704
last, e1, e2, i;
@@ -718,14 +718,14 @@
718718
*/
719719

720720

721-
last = Math.max(t1_child_nodes.length, t2_child_nodes.length);
722-
if (t1_child_nodes.length !== t2_child_nodes.length) {
721+
last = Math.max(t1ChildNodes.length, t2ChildNodes.length);
722+
if (t1ChildNodes.length !== t2ChildNodes.length) {
723723
childNodesLengthDifference = true;
724724
}
725725

726726
for (i = 0; i < last; i += 1) {
727-
e1 = t1_child_nodes[i];
728-
e2 = t2_child_nodes[i];
727+
e1 = t1ChildNodes[i];
728+
e2 = t2ChildNodes[i];
729729

730730
if (childNodesLengthDifference) {
731731
/* t1 and t2 have different amounts of childNodes. Add
@@ -778,7 +778,7 @@
778778
index += 1;
779779

780780
}
781-
781+
t1.innerDone = true;
782782
return diffs;
783783

784784
},

0 commit comments

Comments
 (0)