Skip to content

Commit df88fb4

Browse files
committed
replaced deprecated size() with .length (fixes #162)
1 parent 14bacc4 commit df88fb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/extension/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var IASHistoryExtension = function (options) {
9292

9393
// if the don't have a first element, the DOM might not have been loaded,
9494
// or the selector is invalid
95-
if (0 === $firstElement.size()) {
95+
if (0 === $firstElement.length) {
9696
return -1;
9797
}
9898

src/extension/spinner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var IASSpinnerExtension = function(options) {
5353
this.getSpinner = function() {
5454
var $spinner = jQuery('#ias_spinner_' + this.uid);
5555

56-
if ($spinner.size() > 0) {
56+
if ($spinner.length > 0) {
5757
return $spinner;
5858
}
5959

@@ -66,7 +66,7 @@ var IASSpinnerExtension = function(options) {
6666
this.hasSpinner = function() {
6767
var $spinner = jQuery('#ias_spinner_' + this.uid);
6868

69-
return ($spinner.size() > 0);
69+
return ($spinner.length > 0);
7070
};
7171

7272
/**

src/jquery-ias.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118

119119
// if the don't have a last element, the DOM might not have been loaded,
120120
// or the selector is invalid
121-
if (0 === $lastElement.size()) {
121+
if (0 === $lastElement.length) {
122122
return UNDETERMINED_SCROLLOFFSET;
123123
}
124124

0 commit comments

Comments
 (0)