Merge pull request #518 from mg50/patch-1

Fix accidentally non-local variables
This commit is contained in:
Evan Czaplicki 2014-03-12 09:08:17 -07:00
commit b5f96fda15

View file

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