MCPcopy
hub / github.com/xaboy/form-create / delete

Function delete

packages/core/src/factory/context.js:208–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 this.$handle.watchCtx(this);
207 },
208 delete() {
209 this.unwatch();
210 this.unlink();
211 this.rmCtrl();
212 if (this.parent) {
213 this.parent.children.splice(this.parent.children.indexOf(this) >>> 0, 1);
214 }
215 extend(this, {
216 deleted: true,
217 computed: {},
218 parent: null,
219 children: [],
220 cacheConfig: null,
221 none: false,
222 })
223 },
224 rmCtrl() {
225 this.ctrlRule.forEach(ctrl => ctrl.__fc__ && ctrl.__fc__.rm());
226 this.ctrlRule = [];

Callers

nothing calls this directly

Calls 1

extendFunction · 0.85

Tested by

no test coverage detected