summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/lazy-images
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/lazy-images')
-rw-r--r--plugins/jetpack/modules/lazy-images/js/lazy-images.js4
-rw-r--r--plugins/jetpack/modules/lazy-images/lazy-images.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/jetpack/modules/lazy-images/js/lazy-images.js b/plugins/jetpack/modules/lazy-images/js/lazy-images.js
index 31286bd3..1ddbc2c6 100644
--- a/plugins/jetpack/modules/lazy-images/js/lazy-images.js
+++ b/plugins/jetpack/modules/lazy-images/js/lazy-images.js
@@ -107,7 +107,7 @@ var jetpackLazyImagesModule = function( $ ) {
srcset = theImage.attr( 'data-lazy-srcset' );
sizes = theImage.attr( 'data-lazy-sizes' );
- theClone = theImage.clone();
+ theClone = theImage.clone(true);
// Remove lazy attributes from the clone.
theClone.removeAttr( 'data-lazy-srcset' ),
@@ -139,7 +139,6 @@ var jetpackLazyImagesModule = function( $ ) {
* https://github.com/w3c/IntersectionObserver/tree/master/polyfill
*/
-/* jshint ignore:start */
/**
* Copyright 2016 Google Inc. All Rights Reserved.
*
@@ -864,7 +863,6 @@ var jetpackLazyImagesModule = function( $ ) {
window.IntersectionObserverEntry = IntersectionObserverEntry;
}(window, document));
-/* jshint ignore:end */
// Let's kick things off now
jetpackLazyImagesModule( jQuery );
diff --git a/plugins/jetpack/modules/lazy-images/lazy-images.php b/plugins/jetpack/modules/lazy-images/lazy-images.php
index befa5ec8..c8092840 100644
--- a/plugins/jetpack/modules/lazy-images/lazy-images.php
+++ b/plugins/jetpack/modules/lazy-images/lazy-images.php
@@ -1,5 +1,7 @@
<?php
+use Automattic\Jetpack\Assets;
+
class Jetpack_Lazy_Images {
private static $__instance = null;
@@ -341,7 +343,7 @@ class Jetpack_Lazy_Images {
public function enqueue_assets() {
wp_enqueue_script(
'jetpack-lazy-images',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/lazy-images/js/lazy-images.min.js',
'modules/lazy-images/js/lazy-images.js'
),