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

Method deletePanel

js/Post.js:69–71  ·  view source on GitHub ↗

* Delete an existing panel at the requested index. * @param {number} panelIndex - Position of the panel in the array of panels on this post to delete.

(panelIndex)

Source from the content-addressed store, hash-verified

67 * @param {number} panelIndex - Position of the panel in the array of panels on this post to delete.
68 */
69 deletePanel(panelIndex) {
70 this.panels.splice(panelIndex, 1);
71 }
72
73 /**
74 * Shift the requested panel to the left one position swapping it with that panel to the left.

Callers 2

deletePanelFunction · 0.80
deletePanelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected