Commit 628bacc3 authored by Xavi's avatar Xavi

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

parent d03d2e9f
...@@ -263,7 +263,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) { ...@@ -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 ) { ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment