MCPcopy Create free account
hub / github.com/microsoft/SandDance / Subcontext

Function Subcontext

docs/app/js/sanddance-app.js:146683–146697  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

146681 }
146682}
146683function Subcontext(ctx) {
146684 this.dataflow = ctx.dataflow;
146685 this.transforms = ctx.transforms;
146686 this.events = ctx.events;
146687 this.expr = ctx.expr;
146688 this.signals = Object.create(ctx.signals);
146689 this.scales = Object.create(ctx.scales);
146690 this.nodes = Object.create(ctx.nodes);
146691 this.data = Object.create(ctx.data);
146692 this.fn = Object.create(ctx.fn);
146693 if (ctx.functions) {
146694 this.functions = Object.create(ctx.functions);
146695 this.functions.context = this;
146696 }
146697}
146698Context.prototype = Subcontext.prototype = {
146699 fork () {
146700 const ctx = new Subcontext(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected