MCPcopy Index your code
hub / github.com/mailru/FileAPI / extend

Function extend

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

Source from the content-addressed store, hash-verified

1479}
1480
1481function extend( a, b ) {
1482 for ( var prop in b ) {
1483 if ( b[ prop ] === undefined ) {
1484 delete a[ prop ];
1485
1486 // Avoid "Member not found" error in IE8 caused by setting window.constructor
1487 } else if ( prop !== "constructor" || a !== window ) {
1488 a[ prop ] = b[ prop ];
1489 }
1490 }
1491
1492 return a;
1493}
1494
1495/**
1496 * @param {HTMLElement} elem

Callers 2

TestFunction · 0.85
qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected