on master help sign in
Merge pull request #518 from mg50/patch-1

Fix accidentally non-local variables

commitb5f96fda1524331c395bfc1d5eda7101c9b3db80 authorEvan Czaplicki <info@elm-lang.org> dateWed 12 Mar 2014, 09:08 (13 years ago) parent5c3ec5f898f3f8
1 file changed+2−2
runtime/HotSwap.js+2−2
runtime/HotSwap.js+2−2
@@ -5,8 +5,8 @@
55// structure.
66ElmRuntime.swap = function(from, to) {
77 function similar(nodeOld,nodeNew) {
8− idOkay = nodeOld.id === nodeNew.id;
9− lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
8+ var idOkay = nodeOld.id === nodeNew.id;
9+ var lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
1010 return idOkay && lengthOkay;
1111 }
1212 function swap(nodeOld,nodeNew) {