diff options
author | Uri Gilad <antishok@gmail.com> | 2012-07-09 23:06:51 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-09 23:06:51 -0400 |
commit | 21b0db7993315f0a5390798fefe63eb21891493e (patch) | |
tree | 14bfe96ca47cfe545849b6a855fe8cd26a69ae80 /src/offset.js | |
parent | 376f4e8cf637e76445082d7fdb88ab420d488b5c (diff) | |
download | jquery-21b0db7993315f0a5390798fefe63eb21891493e.tar.gz jquery-21b0db7993315f0a5390798fefe63eb21891493e.zip |
Fix #11962. Standardize getter return values for empty sets.
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/offset.js b/src/offset.js index f8fd0ec87..db161f3ee 100644 --- a/src/offset.js +++ b/src/offset.js @@ -14,7 +14,7 @@ jQuery.fn.offset = function( options ) { doc = elem && elem.ownerDocument; if ( !doc ) { - return null; + return; } if ( (body = doc.body) === elem ) { @@ -103,7 +103,7 @@ jQuery.fn.extend({ position: function() { if ( !this[0] ) { - return null; + return; } var elem = this[0], |