We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2730a commit 8579320Copy full SHA for 8579320
test/lazyloadxt_test.js
@@ -39,10 +39,10 @@
39
expect(5);
40
setTimeout(function () {
41
var $img = $('img'),
42
- cntinit = $img.filter(function (el) {
+ cntinit = $img.filter(function (index, el) {
43
return $(el).data('lazied');
44
}).length,
45
- cntnow = $img.filter(function (el) {
+ cntnow = $img.filter(function (index, el) {
46
return $(el).data('lazied') && ($(el).attr('src') === $(el).attr('data-src'));
47
}).length;
48
ok($img.length > 0, 'images should be presented');
0 commit comments