Skip to content

Commit

Permalink
Replaced parentElement with parentNode
Browse files Browse the repository at this point in the history
  • Loading branch information
verlok committed Nov 20, 2017
1 parent 55027dc commit 7285833
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/lazyload.es2015.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const setData = (element, attribute, value) => {
};

const setSourcesForPicture = function (element, srcsetDataAttribute) {
const parent = element.parentElement;
const parent = element.parentNode;
if (parent.tagName !== "PICTURE") {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/lazyload.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
};

var setSourcesForPicture = function setSourcesForPicture(element, srcsetDataAttribute) {
var parent = element.parentElement;
var parent = element.parentNode;
if (parent.tagName !== "PICTURE") {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/lazyload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vanilla-lazyload",
"version": "8.5.1",
"version": "8.5.2",
"description": "A fast, lightweight script to load images as they enter the viewport. SEO friendly, it supports responsive images (both srcset + sizes and picture) and progressive JPEG",
"main": "dist/lazyload.min.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/lazyload.setSources.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {getData} from "./lazyload.data";

const setSourcesForPicture = function (element, srcsetDataAttribute) {
const parent = element.parentElement;
const parent = element.parentNode;
if (parent.tagName !== "PICTURE") {
return;
}
Expand Down

0 comments on commit 7285833

Please sign in to comment.