diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index a7ddc4e3..fc4415b5 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -4716,17 +4716,21 @@ */ function _fnExtend( oOut, oExtender ) { + var val; + for ( var prop in oExtender ) { if ( oExtender.hasOwnProperty(prop) ) { - if ( typeof oInit[prop] === 'object' && $.isArray(oExtender[prop]) === false ) + val = oExtender[prop]; + + if ( typeof oInit[prop] === 'object' && val !== null && $.isArray(val) === false ) { - $.extend( true, oOut[prop], oExtender[prop] ); + $.extend( true, oOut[prop], val ); } else { - oOut[prop] = oExtender[prop]; + oOut[prop] = val; } } } diff --git a/media/src/core/core.support.js b/media/src/core/core.support.js index 5fe8544c..7051697b 100644 --- a/media/src/core/core.support.js +++ b/media/src/core/core.support.js @@ -166,17 +166,21 @@ function _fnMap( oRet, oSrc, sName, sMappedName ) */ function _fnExtend( oOut, oExtender ) { + var val; + for ( var prop in oExtender ) { if ( oExtender.hasOwnProperty(prop) ) { - if ( typeof oInit[prop] === 'object' && $.isArray(oExtender[prop]) === false ) + val = oExtender[prop]; + + if ( typeof oInit[prop] === 'object' && val !== null && $.isArray(val) === false ) { - $.extend( true, oOut[prop], oExtender[prop] ); + $.extend( true, oOut[prop], val ); } else { - oOut[prop] = oExtender[prop]; + oOut[prop] = val; } } }