Bug 7931; Added missing semicolon and replaced '!=' with '!==' to allow null through
This commit is contained in:
parent
d03d2e9f26
commit
628bacc3ce
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
|
|||
jQuery.fn[ method ] = function(val) {
|
||||
var elem, win;
|
||||
|
||||
if ( val != undefined ) {
|
||||
if ( val !== undefined ) {
|
||||
// Set the scroll offset
|
||||
return this.each(function() {
|
||||
win = getWindow( this );
|
||||
|
@ -282,7 +282,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {
|
|||
|
||||
elem = this[0];
|
||||
if( !elem ) {
|
||||
return null
|
||||
return null;
|
||||
}
|
||||
|
||||
win = getWindow( elem );
|
||||
|
|
Loading…
Reference in a new issue