From 485b0ccd61b2c24ae7943bc27340ccabf77a8b89 Mon Sep 17 00:00:00 2001 From: Jaroslav Polakovic Date: Thu, 19 Mar 2020 16:21:00 +0100 Subject: [PATCH] Lazy Images: Fix the jQuery check --- modules/infinite-scroll/infinity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/infinite-scroll/infinity.js b/modules/infinite-scroll/infinity.js index adb9eff4d65ba..b8f520a95ac41 100644 --- a/modules/infinite-scroll/infinity.js +++ b/modules/infinite-scroll/infinity.js @@ -737,7 +737,7 @@ /** * Emit the event in a jQuery way for backwards compatibility where necessary. */ - if ( opts.jqueryEventName && jQuery ) { + if ( opts.jqueryEventName && 'undefined' !== typeof jQuery ) { jQuery( el ).trigger( opts.jqueryEventName, opts.data || null ); }