MCPcopy
hub / github.com/kswedberg/jquery-smooth-scroll / extend

Function extend

lib/qunit/qunit.js:1035–1047  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1033}
1034
1035function extend(a, b) {
1036 for ( var prop in b ) {
1037 if ( b[prop] === undefined ) {
1038 delete a[prop];
1039
1040 // Avoid "Member not found" error in IE8 caused by setting window.constructor
1041 } else if ( prop !== "constructor" || a !== window ) {
1042 a[prop] = b[prop];
1043 }
1044 }
1045
1046 return a;
1047}
1048
1049function addEvent(elem, type, fn) {
1050 if ( elem.addEventListener ) {

Callers 1

qunit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected