MCPcopy
hub / github.com/dli/paint / refresh

Function refresh

buttons.js:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 var activeElement = elements[initialActiveIndex];
15
16 var refresh = function () {
17 for (var i = 0; i < elements.length; ++i) {
18 if (elements[i] === activeElement) {
19 elements[i].className = 'button-selected';
20 } else {
21 elements[i].className = 'button-unselected';
22 }
23 }
24 };
25
26 for (var i = 0; i < elements.length; ++i) {
27 (function () { //create closure to store index

Callers 2

onSelectFunction · 0.85
ButtonsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…