Skip to content

Commit 557e688

Browse files
committed
Support clone element.
1 parent 9adfd5d commit 557e688

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

etc/config.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
require(["jquery", "magepow/lazyload", "domReady!"], function($, lazyload){
2222
var imgLazy = $('img.lazyload').not(".loaded");
2323
imgLazy.lazyload();
24-
imgLazy.on('load',function(){$(this).addClass('loaded');
24+
imgLazy.on('load',function(){
25+
var img = $(this);
26+
if(img.attr('src') == img.data('src')){img.addClass('loaded');}
27+
if($.equalheight) $.fn.equalheight();
28+
});
2529
if($.equalheight) $.fn.equalheight();});
2630
$('body').on('contentUpdated', function () {$(this).find("img.lazyload").not(".loaded").lazyload();});
2731
});

0 commit comments

Comments
 (0)