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

Method insert

scripts/backend/storage.js:34–42  ·  view source on GitHub ↗
(table, data)

Source from the content-addressed store, hash-verified

32 }.bind(this));
33 }
34 insert(table, data) {
35 data.id = uid();
36 var preparedItem = data;
37 if(this._initItem && this._initItem[table]){
38 preparedItem = this._initItem[table](data);
39 }
40 this._data[table].push(sanitizeObject(preparedItem));
41 return data;
42 }
43}
44
45var seed = Date.now();

Callers 3

updateDocFunction · 0.80
insertTaskMethod · 0.80
insertLinkMethod · 0.80

Calls 2

sanitizeObjectFunction · 0.85
uidFunction · 0.70

Tested by

no test coverage detected