Fixed #1908 by testing to make sure it isn't null before checking the nodeType.
This commit is contained in:
parent
ed7608d8ee
commit
95c0265486
2 changed files with 6 additions and 3 deletions
|
@ -549,11 +549,11 @@ jQuery.extend = jQuery.fn.extend = function() {
|
|||
continue;
|
||||
|
||||
// Recurse if we're merging object values
|
||||
if ( deep && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType )
|
||||
if ( deep && options[ name ] && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType )
|
||||
target[ name ] = jQuery.extend( target[ name ], options[ name ] );
|
||||
|
||||
// Don't bring in undefined values
|
||||
else if ( options[ name ] != undefined )
|
||||
else if ( options[ name ] !== undefined )
|
||||
target[ name ] = options[ name ];
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue