mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Bug 7931; Added missing semicolon and replaced '!=' with '!==' to allow null through
This commit is contained in:
parent
d03d2e9f26
commit
628bacc3ce
@ -263,7 +263,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
|
|||||||
jQuery.fn[ method ] = function(val) {
|
jQuery.fn[ method ] = function(val) {
|
||||||
var elem, win;
|
var elem, win;
|
||||||
|
|
||||||
if ( val != undefined ) {
|
if ( val !== undefined ) {
|
||||||
// Set the scroll offset
|
// Set the scroll offset
|
||||||
return this.each(function() {
|
return this.each(function() {
|
||||||
win = getWindow( this );
|
win = getWindow( this );
|
||||||
@ -282,7 +282,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
|
|||||||
|
|
||||||
elem = this[0];
|
elem = this[0];
|
||||||
if( !elem ) {
|
if( !elem ) {
|
||||||
return null
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
win = getWindow( elem );
|
win = getWindow( elem );
|
||||||
|
Loading…
Reference in New Issue
Block a user