Skip to content

Commit e2156b6

Browse files
committed
Merge branch 'master' of https://github.com/ressio/lazy-load-xt
2 parents 7084521 + a9ad232 commit e2156b6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ Addons:
8989
<table>
9090
<tbody>
9191
<tr>
92-
<td><a href="#script-based-tagging-of-lazy-loaded-elements">script-based tagging of lazy loaded elements</a></td>
92+
<td><a href="#script-based-tagging">script-based tagging of lazy loaded elements</a></td>
9393
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.script.js">[jquery.lazyloadxt.script.js</a></td>
9494
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.script.min.js">jquery.lazyloadxt.script.min.js</a></td>
9595
</tr>
9696
<tr>
97-
<td><a href="#responsive-images-and-srcset">Responsive images and srcset</a></td>
97+
<td><a href="#responsive-images">Responsive images and srcset</a></td>
9898
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.srcset.js">jquery.lazyloadxt.srcset.js</a></td>
9999
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.srcset.min.js">jquery.lazyloadxt.srcset.min.js</a></td>
100100
</tr>
@@ -109,7 +109,7 @@ Addons:
109109
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.bg.min.js">jquery.lazyloadxt.bg.min.js</a></td>
110110
</tr>
111111
<tr>
112-
<td><a href="#deferred-load">Deferred load</a></td>
112+
<td><a href="#deferred-autoload">Deferred load</a></td>
113113
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.autoload.js">jquery.lazyloadxt.autoload.js</a></td>
114114
<td><a href="https://raw.github.com/ressio/lazy-load-xt/master/dist/jquery.lazyloadxt.autoload.min.js">jquery.lazyloadxt.autoload.min.js</a></td>
115115
</tr>
@@ -471,7 +471,7 @@ The code below allows you to use `data-src-3x` attribute for screens with 3x den
471471
Demo: http://ressio.github.io/lazy-load-xt/demo/retina.htm
472472

473473
But in real world it's better to set `srcAttr` function and choose most suitable image URL among existing ones. Or set
474-
`src` attribute in `lazyshow` event, like it is done in [Responsive images and srcset](#responsive-images-and-srcset)
474+
`src` attribute in `lazyshow` event, like it is done in [Responsive images and srcset](#responsive-images)
475475
addon.
476476

477477

Diff for: src/jquery.lazyloadxt.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
}
228228

229229
if (removeNode) {
230+
$data(el, dataLazied, 0);
230231
elements.splice(i--, 1);
231232
length--;
232233
}
@@ -309,4 +310,4 @@
309310
}
310311
});
311312

312-
})(window.jQuery || window.Zepto || window.$, window, document);
313+
})(window.jQuery || window.Zepto || window.$, window, document);

0 commit comments

Comments
 (0)