Skip to content
Permalink
Browse files

Bug 7931; Added missing semicolon and replaced '!=' with '!==' to all…

…ow null through
  • Loading branch information...
xavi- committed Jan 10, 2011
1 parent d03d2e9 commit 628bacc3ce26a7a0e0462c2a2e0d764edf859c97
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/offset.js
@@ -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 );

0 comments on commit 628bacc

Please sign in to comment.
You can’t perform that action at this time.