MCPcopy
hub / github.com/GrapesJS/grapesjs / rm

Function rm

packages/core/src/abstract/Module.ts:281–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279 //@ts-ignore
280 const md = isString(model) ? this.get(model) : model;
281 const rm = () => {
282 md && this.all.remove(md, opts);
283 return md;
284 };
285 !opts.silent && em?.trigger(this.events.removeBefore, md, rm, opts);
286 return !opts.abort && rm();
287 }

Callers 3

__removeFunction · 0.85
removeMethod · 0.85
removeMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected