MCPcopy
hub / github.com/playcanvas/engine / extend

Function extend

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

Source from the content-addressed store, hash-verified

1343}
1344
1345function extend( a, b ) {
1346 for ( var prop in b ) {
1347 if ( b[ prop ] === undefined ) {
1348 delete a[ prop ];
1349
1350 // Avoid "Member not found" error in IE8 caused by setting window.constructor
1351 } else if ( prop !== "constructor" || a !== window ) {
1352 a[ prop ] = b[ prop ];
1353 }
1354 }
1355
1356 return a;
1357}
1358
1359function addEvent( elem, type, fn ) {
1360 if ( elem.addEventListener ) {

Callers 2

TestFunction · 0.70
qunit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected