MCPcopy
hub / github.com/MrNothing/AI-Blocks / clone

Method clone

Sources/src/Model/Managers/ScriptsManager.js:105–112  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

103 }
104
105 clone(obj) {
106 if (null == obj || "object" != typeof obj) return obj;
107 var copy = obj.constructor();
108 for (var attr in obj) {
109 if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
110 }
111 return copy;
112 }
113
114 updateAllProjectScriptInstances()
115 {

Callers 6

addScriptInObjectMethod · 0.95
jquery-ui.jsFile · 0.80
HaFunction · 0.80
prism.jsFile · 0.80
prism-min.jsFile · 0.80

Calls 1

constructorMethod · 0.45

Tested by

no test coverage detected