Skip to content

Commit 657482e

Browse files
committed
removed attr and prop confusion
1 parent 1406dec commit 657482e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jquery.columnizer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@
192192
//
193193
// need to support both .prop and .attr if .prop doesn't exist.
194194
// this is for backwards compatibility with older versions of jquery.
195-
if(($clone.prop && $clone.prop("nodeType") == 1 && !$clone.hasClass("dontend")) ||
196-
($clone.attr("nodeType") == 1 && !$clone.hasClass("dontend"))){
195+
if($clone.get(0).nodeType == 1 && !$clone.hasClass("dontend")){
197196
$putInHere.append($clone);
198197
if($clone.is("img") && $parentColumn.height() < targetHeight + 20){
199198
//

0 commit comments

Comments
 (0)