We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d3c7a2 commit aa2291cCopy full SHA for aa2291c
src/jquery.columnizer.js
@@ -166,7 +166,11 @@
166
if($pullOutHere.children().length){
167
$cloneMe = $pullOutHere.children(":first");
168
$clone = $cloneMe.clone(true);
169
- if($clone.prop("nodeType") == 1 && !$clone.hasClass("dontend")){
+ //
170
+ // need to support both .prop and .attr if .prop doesn't exist.
171
+ // this is for backwards compatibility with older versions of jquery.
172
+ if(($clone.prop && $clone.prop("nodeType") == 1 && !$clone.hasClass("dontend")) ||
173
+ ($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend"))){
174
$putInHere.append($clone);
175
if($clone.is("img") && $parentColumn.height() < height + 20){
176
$cloneMe.remove();
0 commit comments