MCPcopy
hub / github.com/bgstaal/multipleWindow3dScene / getWindowIndexFromId

Method getWindowIndexFromId

WindowManager.js:84–94  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

82 }
83
84 getWindowIndexFromId (id)
85 {
86 let index = -1;
87
88 for (let i = 0; i < this.#windows.length; i++)
89 {
90 if (this.#windows[i].id == id) index = i;
91 }
92
93 return index;
94 }
95
96 updateWindowsLocalStorage ()
97 {

Callers 2

updateMethod · 0.95
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected