MCPcopy Create free account
hub / github.com/Yaffle/EventSource / extend

Function extend

tests/qunit.js:1079–1094  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

1077}
1078
1079function extend( a, b ) {
1080 for ( var prop in b ) {
1081 if ( hasOwn.call( b, prop ) ) {
1082 // Avoid "Member not found" error in IE8 caused by messing with window.constructor
1083 if ( !( prop === "constructor" && a === window ) ) {
1084 if ( b[ prop ] === undefined ) {
1085 delete a[ prop ];
1086 } else {
1087 a[ prop ] = b[ prop ];
1088 }
1089 }
1090 }
1091 }
1092
1093 return a;
1094}
1095
1096/**
1097 * @param {HTMLElement} elem

Callers 2

qunit.jsFile · 0.85
TestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected