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

Function _prepareItemForJson

codebase/dhtmlxscheduler.es.js:2903–2910  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2901 this.$scheduler.getUserData(n, this.action_param) && e.call(this, n);
2902 }
2903}, _prepareItemForJson(e) {
2904 const i = {}, t = this.$scheduler, n = t.utils.copy(e);
2905 for (let s in n) {
2906 let a = n[s];
2907 s.indexOf("_") !== 0 && (a ? a.getUTCFullYear ? i[s] = t._helpers.formatDate(a) : i[s] = typeof a == "object" ? this._prepareItemForJson(a) : a : a !== void 0 && (i[s] = a));
2908 }
2909 return i[this.action_param] = t.getUserData(e.id, this.action_param), i;
2910}, _prepareItemForForm(e) {
2911 const i = {}, t = this.$scheduler, n = t.utils.copy(e);
2912 for (var s in n) {
2913 let a = n[s];

Callers

nothing calls this directly

Calls 2

copyMethod · 0.65
getUserDataMethod · 0.65

Tested by

no test coverage detected