aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorXavi <xavi.rmz@gmail.com>2011-01-09 20:12:29 -0500
committerXavi <xavi.rmz@gmail.com>2011-01-09 20:16:18 -0500
commit628bacc3ce26a7a0e0462c2a2e0d764edf859c97 (patch)
tree588fddc8f7a25d39626aaf8827badbb0781dd64d /src/offset.js
parentd03d2e9f26f85366ad2e91b9e2c76a249d7bf7be (diff)
downloadjquery-628bacc3ce26a7a0e0462c2a2e0d764edf859c97.tar.gz
jquery-628bacc3ce26a7a0e0462c2a2e0d764edf859c97.zip
Bug 7931; Added missing semicolon and replaced '!=' with '!==' to allow null through
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js
index d53a8813b..02f067ebb 100644
--- a/src/offset.js
+++ b/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 );