@@ -90,7 +90,7 @@ define([
90
90
$title ,
91
91
$corner ;
92
92
93
- if ( ! $element . size ( ) ) {
93
+ if ( ! $element . length ) {
94
94
$element = $ ( '<div class="' +
95
95
$widget . options . tooltipClass +
96
96
'"><div class="image"></div><div class="title"></div><div class="corner"></div></div>'
@@ -810,7 +810,7 @@ define([
810
810
$widget . _Rewind ( controls ) ;
811
811
812
812
// done if nothing selected
813
- if ( selected . size ( ) <= 0 ) {
813
+ if ( selected . length <= 0 ) {
814
814
return ;
815
815
}
816
816
@@ -820,7 +820,7 @@ define([
820
820
id = $this . attr ( 'attribute-id' ) ,
821
821
products = $widget . _CalcProducts ( id ) ;
822
822
823
- if ( selected . size ( ) === 1 && selected . first ( ) . attr ( 'attribute-id' ) === id ) {
823
+ if ( selected . length === 1 && selected . first ( ) . attr ( 'attribute-id' ) === id ) {
824
824
return ;
825
825
}
826
826
@@ -1016,7 +1016,7 @@ define([
1016
1016
_EnableProductMediaLoader : function ( $this ) {
1017
1017
var $widget = this ;
1018
1018
1019
- if ( $ ( 'body.catalog-product-view' ) . size ( ) > 0 ) {
1019
+ if ( $ ( 'body.catalog-product-view' ) . length > 0 ) {
1020
1020
$this . parents ( '.column.main' ) . find ( '.photo.image' )
1021
1021
. addClass ( $widget . options . classes . loader ) ;
1022
1022
} else {
@@ -1035,7 +1035,7 @@ define([
1035
1035
_DisableProductMediaLoader : function ( $this ) {
1036
1036
var $widget = this ;
1037
1037
1038
- if ( $ ( 'body.catalog-product-view' ) . size ( ) > 0 ) {
1038
+ if ( $ ( 'body.catalog-product-view' ) . length > 0 ) {
1039
1039
$this . parents ( '.column.main' ) . find ( '.photo.image' )
1040
1040
. removeClass ( $widget . options . classes . loader ) ;
1041
1041
} else {
0 commit comments