@@ -33,7 +33,7 @@ $.fn.within= function(left, top, useOffsetCache) {
3333
3434 // uses either the cached offset or .offset()
3535 var offset = useOffsetCache ?
36- jQuery . data ( this , "offsetCache" ) || jQuery . data ( this , "offsetCache" , q . offset ( ) ) :
36+ $ . data ( this , "offsetCache" ) || $ . data ( this , "offsetCache" , q . offset ( ) ) :
3737 q . offset ( ) ;
3838
3939 // Check if the given coordinates are within the area of the current element
@@ -46,7 +46,7 @@ $.fn.within= function(left, top, useOffsetCache) {
4646 }
4747 } ) ;
4848
49- return this . pushStack ( jQuery . unique ( ret ) , "within" , left + "," + top ) ;
49+ return this . pushStack ( $ . unique ( ret ) , "within" , left + "," + top ) ;
5050}
5151
5252
@@ -75,8 +75,8 @@ $.fn.withinBox = function(left, top, width, height, useOffsetCache){
7575
7676 // use cached offset or .offset()
7777 var offset = useOffsetCache ?
78- jQuery . data ( this , "offset" ) ||
79- jQuery . data ( this , "offset" , q . offset ( ) ) :
78+ $ . data ( this , "offset" ) ||
79+ $ . data ( this , "offset" , q . offset ( ) ) :
8080 q . offset ( ) ;
8181
8282
@@ -87,7 +87,7 @@ $.fn.withinBox = function(left, top, width, height, useOffsetCache){
8787 if ( res )
8888 ret . push ( this ) ;
8989 } ) ;
90- return this . pushStack ( jQuery . unique ( ret ) , "withinBox" , jQuery . makeArray ( arguments ) . join ( "," ) ) ;
90+ return this . pushStack ( $ . unique ( ret ) , "withinBox" , $ . makeArray ( arguments ) . join ( "," ) ) ;
9191}
9292
9393return $ ;
0 commit comments