@@ -5,8 +5,8 @@
5// structure.
5// structure.
6ElmRuntime.swap = function(from, to) {
6ElmRuntime.swap = function(from, to) {
7 function similar(nodeOld,nodeNew) {
7 function similar(nodeOld,nodeNew) {
8− idOkay = nodeOld.id === nodeNew.id;
8+ var idOkay = nodeOld.id === nodeNew.id;
9− lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
9+ var lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
10 return idOkay && lengthOkay;
10 return idOkay && lengthOkay;
12 function swap(nodeOld,nodeNew) {
12 function swap(nodeOld,nodeNew) {