diff options
author | John Resig <jeresig@gmail.com> | 2011-04-16 14:18:56 -0700 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-04-16 14:18:56 -0700 |
commit | 94ee3e9743c2cab24084ae24e02871f6df4aef13 (patch) | |
tree | 8d6c4562d657e56d8a72f88f96f8c928da212079 /src/ajax.js | |
parent | 5b197b6c5f429fefec20252945503f3ef3bc4748 (diff) | |
download | jquery-94ee3e9743c2cab24084ae24e02871f6df4aef13.tar.gz jquery-94ee3e9743c2cab24084ae24e02871f6df4aef13.zip |
Cache references to navigator and location. Fixes #6690.
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js index 2a1076391..4f8fee6c1 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -45,9 +45,9 @@ var r20 = /%20/g, ajaxLocParts; // #8138, IE may throw an exception when accessing -// a field from document.location if document.domain has been set +// a field from window.location if document.domain has been set try { - ajaxLocation = document.location.href; + ajaxLocation = location.href; } catch( e ) { // Use the href attribute of an A element // since IE will modify it given document.location |