Skip to content

Commit

Permalink
Fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Aimes committed Nov 20, 2020
1 parent a4d6553 commit d1bbeb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Block/Preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Preload extends Template
{
/**
* @var SerializerInterface
* @var SerializerInterface
*/
protected $serializer;

Expand Down
12 changes: 7 additions & 5 deletions view/frontend/web/js/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ define([

// For each <item> node in the 'preload_elements' layout argument
for (key in selectors) {
$preloadElements = $(selectors[key]);
if (Object.prototype.hasOwnProperty.call(selectors, key)) {
$preloadElements = $(selectors[key]);

// For each element in the collection, unveil it
$preloadElements.each(function () {
lazySizes.loader.unveil(this);
});
// For each element in the collection, unveil it
$preloadElements.each(function () {
lazySizes.loader.unveil(this);
});
}
}
};
});

0 comments on commit d1bbeb7

Please sign in to comment.