Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing all .size() deleted method by .length property. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions view/frontend/web/js/plugin/infinitescroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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);
};

/**
Expand Down