Bug 7931; Added missing semicolon and replaced '!=' with '!==' to allow null through

This commit is contained in:
Xavi 2011-01-09 20:12:29 -05:00
parent d03d2e9f26
commit 628bacc3ce

View file

@ -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 );