Skip to content

Commit a9ad232

Browse files
committed
Merge pull request ressio#61 from msaggiorato/patch-1
Remove dataLazied from the removed elements
2 parents 0ea6a30 + a1fce1d commit a9ad232

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)