Skip to content

Commit 3a89c94

Browse files
committed
added comments
1 parent 0a3b4df commit 3a89c94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jquery.columnizer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,15 @@
202202
// it in half, leaving some of it in pullOutHere
203203
$clone.empty();
204204
if(!columnize($clone, $cloneMe, $parentColumn, height)){
205+
// this node still has non-text nodes to split
206+
// add the split class and then recur
205207
$cloneMe.addClass("split");
206208
if($cloneMe.children().length){
207209
split($clone, $cloneMe, $parentColumn, height);
208210
}
209211
}else{
212+
// this node only has text node children left, add the
213+
// split class and move on.
210214
$cloneMe.addClass("split");
211215
}
212216
if($clone.get(0).childNodes.length == 0){

0 commit comments

Comments
 (0)