git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04b92e7
)
Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per...
author
Dave Methvin
<dave.methvin@gmail.com>
Tue, 15 Dec 2009 02:45:22 +0000
(10:45 +0800)
committer
John Resig
<jeresig@gmail.com>
Thu, 17 Dec 2009 20:01:39 +0000
(
04:01
+0800)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
df418eb
..
5cc7b37
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-199,7
+199,7
@@
jQuery.extend({
var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
var jsonp, status, data,
- callbackContext = s.context || window,
+ callbackContext = s.context || s,
type = s.type.toUpperCase();
// convert data if not already a string