aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-01-23 23:25:29 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-01-27 10:04:09 -0500
commit64b55f0b7912d96c3bdae8c771b4da99c96954fd (patch)
tree09ada1566e7122e16438ad82f7807ec1a340a016 /src/offset.js
parent6f7b6915bf457c413476faefb2159df717c2c210 (diff)
downloadjquery-64b55f0b7912d96c3bdae8c771b4da99c96954fd.tar.gz
jquery-64b55f0b7912d96c3bdae8c771b4da99c96954fd.zip
Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefined" for safer uglification
(cherry picked from commit ec9b38a34fb9bd81d1903cf12b69466f699abca5)
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js
index 4fb37bb7c..fc110f012 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -25,7 +25,7 @@ jQuery.fn.offset = function( options ) {
// If we don't have gBCR, just use 0,0 rather than error
// BlackBerry 5, iOS 3 (original iPhone)
- if ( typeof elem.getBoundingClientRect !== "undefined" ) {
+ if ( typeof elem.getBoundingClientRect !== core_strundefined ) {
box = elem.getBoundingClientRect();
}
win = getWindow( doc );