Skip to content

Commit a1fce1d

Browse files
committed
Remove dataLazied from the removed elements
This is so that they're not detected as duplicates if they're reattached to the DOM in the future.
1 parent 2877ea0 commit a1fce1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.lazyloadxt.js

Lines changed: 2 additions & 1 deletion
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)