MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _cloneObj

Function _cloneObj

codebase/sources/dhtmlxscheduler.js:13054–13061  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

13052 };
13053 (function() {
13054 var _cloneObj = function(obj) {
13055 if (obj === null || typeof obj != "object")
13056 return obj;
13057 var temp = new obj.constructor();
13058 for (var key in obj)
13059 temp[key] = _cloneObj(obj[key]);
13060 return temp;
13061 };
13062 scheduler2._dataprocessors = [];
13063 scheduler2._layers_zindex = {};
13064 for (var i2 = 0; i2 < scheduler2.layers.length; i2++) {

Callers 1

layerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected