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 bef9784 commit bf76febCopy full SHA for bf76feb
src/jquery.lazyloadxt.js
@@ -46,15 +46,6 @@
46
$data = $.data || function (el, name) {
47
return $(el).data(name);
48
},
49
- // $.contains is not included into DOMtastic, so implement it there
50
- $contains = $.contains || function (parent, el) {
51
- while (el = el.parentNode) {
52
- if (el === parent) {
53
- return true;
54
- }
55
56
- return false;
57
- },
58
elements = [],
59
topLazy = 0,
60
/*
@@ -197,7 +188,7 @@
197
188
topEdge;
198
189
199
190
// remove items that are not in DOM
200
- if (!$contains(docElement, el)) {
191
+ if (!$.contains(docElement, el)) {
201
192
removeNode = true;
202
193
} else if (force || !objData.visibleOnly || el.offsetWidth || el.offsetHeight) {
203
194
0 commit comments