aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorUri Gilad <antishok@gmail.com>2012-07-09 23:06:51 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-09 23:06:51 -0400
commit21b0db7993315f0a5390798fefe63eb21891493e (patch)
tree14bfe96ca47cfe545849b6a855fe8cd26a69ae80 /src/offset.js
parent376f4e8cf637e76445082d7fdb88ab420d488b5c (diff)
downloadjquery-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.js4
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],