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

Method activate

tools/mcsim/ControlsPane.js:187–190  ·  view source on GitHub ↗
(container, active)

Source from the content-addressed store, hash-verified

185 width:160, height:30, active:true,
186 Behavior: class extends ButtonBehavior {
187 activate(container, active) {
188 container.active = active;
189 this.onStateChanged(container);
190 }
191 onDisplaying(container) {
192 let data = this.data;
193 if ("active" in data)

Callers 1

onDisplayingMethod · 0.45

Calls 2

onStateChangedMethod · 0.45
onDataChangedMethod · 0.45

Tested by

no test coverage detected