From 000607f8e0a23db840ee3ca9b9464d7e623e63c9 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 9 Feb 2013 15:43:47 +0000 Subject: [PATCH] Considering empty folder should be opposite arg Should be if the childNodes.length < 3, was doing the opposite. Oops! --- lib/ice-coder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index f0be42a..c9de71e 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -663,7 +663,7 @@ var ICEcoder = { innerLI = '        '+file+' '+perms+''; // If we don't have at least 3 DOM items in here, it's an empty folder - if(!locNest.childNodes.length<3) { + if(locNest.childNodes.length<3) { // We now need to begin a new UL list newUL = document.createElement("ul"); locNest = targetElem.parentNode.parentNode;