Merge pull request #518 from mg50/patch-1
Fix accidentally non-local variables
This commit is contained in:
commit
b5f96fda15
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@
|
|||
// structure.
|
||||
ElmRuntime.swap = function(from, to) {
|
||||
function similar(nodeOld,nodeNew) {
|
||||
idOkay = nodeOld.id === nodeNew.id;
|
||||
lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
|
||||
var idOkay = nodeOld.id === nodeNew.id;
|
||||
var lengthOkay = nodeOld.kids.length === nodeNew.kids.length;
|
||||
return idOkay && lengthOkay;
|
||||
}
|
||||
function swap(nodeOld,nodeNew) {
|
||||
|
|
Loading…
Reference in a new issue