From ae3c19172822ed0dc85fabb363deb9f40adbd715 Mon Sep 17 00:00:00 2001 From: Nathan Marcy Date: Tue, 27 Jun 2023 10:53:39 +0200 Subject: [PATCH] Replacing all .size() deleted method by .length property. --- view/frontend/web/js/plugin/infinitescroll.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/view/frontend/web/js/plugin/infinitescroll.js b/view/frontend/web/js/plugin/infinitescroll.js index 19f619a..151ea65 100644 --- a/view/frontend/web/js/plugin/infinitescroll.js +++ b/view/frontend/web/js/plugin/infinitescroll.js @@ -268,7 +268,7 @@ IASCallbacks.prototype = { // if the don't have a last element, the DOM might not have been loaded, // or the selector is invalid - if (0 === $lastElement.size()) { + if (0 === $lastElement.length) { return UNDETERMINED_SCROLLOFFSET; } @@ -833,7 +833,7 @@ var IASHistoryExtension = function (options) { // if the don't have a first element, the DOM might not have been loaded, // or the selector is invalid - if (0 === $firstElement.size()) { + if (0 === $firstElement.length) { return -1; } @@ -1227,7 +1227,7 @@ var IASSpinnerExtension = function(options) { this.getSpinner = function() { var $spinner = jQuery('#ias_spinner_' + this.uid); - if ($spinner.size() > 0) { + if ($spinner.length > 0) { return $spinner; } @@ -1240,7 +1240,7 @@ var IASSpinnerExtension = function(options) { this.hasSpinner = function() { var $spinner = jQuery('#ias_spinner_' + this.uid); - return ($spinner.size() > 0); + return ($spinner.length > 0); }; /**