Skip to content

Commit 6ece753

Browse files
committed
Enable removeiffirst and removeiflast classes for children in splitted elements
For markup such as 'ul > li' removeif* classes were not available for children elements. This patch add remove() for removeif* elements inside "split" class.
1 parent 478350c commit 6ece753

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jquery.columnizer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@
595595
}
596596
$inBox.find(prefixTheClassName("column", true)).find(":first" + prefixTheClassName("removeiffirst", true)).remove();
597597
$inBox.find(prefixTheClassName("column", true)).find(':last' + prefixTheClassName("removeiflast", true)).remove();
598+
$inBox.find(prefixTheClassName("split", true)).find(":first" + prefixTheClassName("removeiffirst", true)).remove();
599+
$inBox.find(prefixTheClassName("split", true)).find(':last' + prefixTheClassName("removeiflast", true)).remove();
598600
$inBox.data("columnizing", false);
599601

600602
if(options.overflow){

0 commit comments

Comments
 (0)