Merge branch 'master' of github.com:jquery/jquery into jquery-master
This commit is contained in:
commit
8805f1373d
|
@ -365,8 +365,9 @@ jQuery.extend({
|
||||||
( s.context = ( "context" in options ? options : jQuery.ajaxSettings ).context ) || s,
|
( s.context = ( "context" in options ? options : jQuery.ajaxSettings ).context ) || s,
|
||||||
// Context for global events
|
// Context for global events
|
||||||
// It's the callbackContext if one was provided in the options
|
// It's the callbackContext if one was provided in the options
|
||||||
// and if it's a DOM node
|
// and if it's a DOM node or a jQuery collection
|
||||||
globalEventContext = callbackContext !== s && callbackContext.nodeType ?
|
globalEventContext = callbackContext !== s &&
|
||||||
|
( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
|
||||||
jQuery( callbackContext ) : jQuery.event,
|
jQuery( callbackContext ) : jQuery.event,
|
||||||
// Deferreds
|
// Deferreds
|
||||||
deferred = jQuery.Deferred(),
|
deferred = jQuery.Deferred(),
|
||||||
|
|
Loading…
Reference in a new issue