MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / constructor

Method constructor

contributed/conversationalAI/views/Services.js:127–138  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

125
126export default class extends View {
127 constructor(data) {
128 super();
129 this.persona = data.persona;
130 const service = this.persona.service;
131 this.names = [];
132 for (let name in assets.services) {
133 if (name == service)
134 this.selection = this.names.length;
135 this.names.push(name);
136 }
137 this.scroll = { x:0, y:0 };
138 }
139 get Template() { return ServicesContainer }
140 get Timeline() { return ServicesTimeline }
141};

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected