MCPcopy
hub / github.com/dataarts/dat.gui / extend

Function extend

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

Source from the content-addressed store, hash-verified

997}
998
999function extend(a, b) {
1000 for ( var prop in b ) {
1001 if ( b[prop] === undefined ) {
1002 delete a[prop];
1003
1004 // Avoid "Member not found" error in IE8 caused by setting window.constructor
1005 } else if ( prop !== "constructor" || a !== window ) {
1006 a[prop] = b[prop];
1007 }
1008 }
1009
1010 return a;
1011}
1012
1013function addEvent(elem, type, fn) {
1014 if ( elem.addEventListener ) {

Callers 1

qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…