MCPcopy Index your code
hub / github.com/DHTMLX/gantt / copyObj

Function copyObj

samples/common/codehighlight/codemirror.js:151–157  ·  view source on GitHub ↗
(obj, target, overwrite)

Source from the content-addressed store, hash-verified

149 }
150
151 function copyObj(obj, target, overwrite) {
152 if (!target) { target = {}; }
153 for (var prop in obj)
154 { if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
155 { target[prop] = obj[prop]; } }
156 return target
157 }
158
159 // Counts the column offset in a string, taking tabs into account.
160 // Used mostly to find indentation.

Callers 6

createObjFunction · 0.85
extendModeFunction · 0.85
markTextFunction · 0.85
markTextSharedFunction · 0.85
CodeMirrorFunction · 0.85
fromTextAreaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected