Skip to content

Commit

Permalink
Lazy Images: Fix the jQuery check
Browse files Browse the repository at this point in the history
  • Loading branch information
dero committed Mar 19, 2020
1 parent 3bf681a commit 485b0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/infinite-scroll/infinity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 485b0cc

Please sign in to comment.