MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / rebuildArrays

Function rebuildArrays

assets/js/DragToDo.js:148–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147// Allows arrays to reflect Drag and Drop items
148function rebuildArrays() {
149 backlogListArray = [];
150 for (let i = 0; i < backlogListEl.children.length; i++) {
151 backlogListArray.push(backlogListEl.children[i].textContent);
152 }
153 progressListArray = [];
154 for (let i = 0; i < progressListEl.children.length; i++) {
155 progressListArray.push(progressListEl.children[i].textContent);
156 }
157 completeListArray = [];
158 for (let i = 0; i < completeListEl.children.length; i++) {
159 completeListArray.push(completeListEl.children[i].textContent);
160 }
161 onHoldListArray = [];
162 for (let i = 0; i < onHoldListEl.children.length; i++) {
163 onHoldListArray.push(onHoldListEl.children[i].textContent);
164 }
165 updateDOM();
166}
167
168// When Item Enters Column Area
169function dragEnter(column) {

Callers 1

dropFunction · 0.85

Calls 1

updateDOMFunction · 0.70

Tested by

no test coverage detected