aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Antaki <ChrisAntaki@gmail.com>2014-07-25 13:08:42 -0700
committerOleg Gaidarenko <markelog@gmail.com>2014-09-02 20:29:10 +0400
commit4287442ab8bdf8d9f008f3e84ccbf7d86d0fb5db (patch)
treed4e5f333d70b8b0a8b7020dfd4c84ef4d235bd5c /src
parent29838b6cab6f2e508f3e9692f32918c72b1a504b (diff)
downloadjquery-4287442ab8bdf8d9f008f3e84ccbf7d86d0fb5db.tar.gz
jquery-4287442ab8bdf8d9f008f3e84ccbf7d86d0fb5db.zip
Offset: Simplified a conditional
Diffstat (limited to 'src')
-rw-r--r--src/offset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js
index fa51f1803..ffd049157 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -98,7 +98,7 @@ jQuery.fn.extend({
// Support: BlackBerry 5, iOS 3 (original iPhone)
// If we don't have gBCR, just use 0,0 rather than error
- if ( elem.getBoundingClientRect !== undefined ) {
+ if ( elem.getBoundingClientRect ) {
box = elem.getBoundingClientRect();
}
win = getWindow( doc );