MCPcopy Create free account
hub / github.com/Make-md/makemd / getContainer

Function getContainer

src/basics/flow/patchWorkspaceForFlow.ts:126–133  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

124 plugin.plugin.register(
125 around(WorkspaceItem.prototype, {
126 getContainer(old) {
127 return function () {
128 if (!old) return; // 0.14.x doesn't have this
129 if (!this.parentSplit || this instanceof WorkspaceContainer)
130 return old.call(this);
131 return this.parentSplit.getContainer();
132 };
133 },
134 })
135 );
136};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected