MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / clearShields

Function clearShields

js/main.js:308–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306
307 // Delete all shields of a sign
308 const clearShields = function() {
309 const subPanel = post.panels[currentlySelectedPanelIndex].sign.subPanels[currentlySelectedSubPanelIndex];
310 const shields = subPanel.shields;
311
312 while (shields.length > 0) {
313 deleteShield(shields.length - 1, currentlySelectedSubPanelIndex);
314 };
315 };
316
317 // Duplicate a shield
318 const duplicateShield = function(shieldIndex) {

Callers

nothing calls this directly

Calls 1

deleteShieldFunction · 0.70

Tested by

no test coverage detected