MCPcopy
hub / github.com/10bestdesign/jqvmap / extend

Function extend

tests/qunit/qunit.js:719–735  ·  view source on GitHub ↗
( a, b, undefOnly )

Source from the content-addressed store, hash-verified

717 }
718
719 function extend( a, b, undefOnly ) {
720 for ( var prop in b ) {
721 if ( hasOwn.call( b, prop ) ) {
722
723 // Avoid "Member not found" error in IE8 caused by messing with window.constructor
724 if ( !( prop === "constructor" && a === window ) ) {
725 if ( b[ prop ] === undefined ) {
726 delete a[ prop ];
727 } else if ( !( undefOnly && typeof a[ prop ] !== "undefined" ) ) {
728 a[ prop ] = b[ prop ];
729 }
730 }
731 }
732 }
733
734 return a;
735 }
736
737 function runLoggingCallbacks( key, args ) {
738 var i, l, callbacks;

Callers 2

qunit.jsFile · 0.85
TestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected