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

Method onDisplaying

tools/mcsim/ControlsPane.js:102–109  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

100 this.onStateChanged(container);
101 }
102 onDisplaying(container) {
103 let data = this.data;
104 if ("active" in data)
105 this.activate(container, data.active);
106 if ("name" in data)
107 model.DEVICE.first.behavior[data.name] = container;
108 super.onDisplaying(container);
109 }
110 onTouchBegan(container, id, x, y, ticks) {
111 super.onTouchBegan(container, id, x, y, ticks);
112 let data = this.data;

Callers

nothing calls this directly

Calls 2

activateMethod · 0.95
onDisplayingMethod · 0.65

Tested by

no test coverage detected