Skip to content

Commit

Permalink
Bug 7931; Added missing semicolon and replaced '!=' with '!==' to all…
Browse files Browse the repository at this point in the history
…ow null through
  • Loading branch information
xavi- committed Jan 10, 2011
1 parent d03d2e9 commit 628bacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/offset.js
Expand Up @@ -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 );
Expand All @@ -282,7 +282,7 @@ jQuery.each( ["Left", "Top"], function( i, name ) {

elem = this[0];
if( !elem ) {
return null
return null;
}

win = getWindow( elem );
Expand Down

0 comments on commit 628bacc

Please sign in to comment.