MCPcopy Create free account
hub / github.com/microsoft/SandDance / clearNext

Function clearNext

docs/app/js/sanddance-app.js:50905–50911  ·  view source on GitHub ↗
(maskCharData, selectionStart)

Source from the content-addressed store, hash-verified

50903 return maskCharData;
50904}
50905function clearNext(maskCharData, selectionStart) {
50906 for(var i = 0; i < maskCharData.length; i++)if (maskCharData[i].displayIndex >= selectionStart) {
50907 maskCharData[i].value = undefined;
50908 break;
50909 }
50910 return maskCharData;
50911}
50912function clearPrev(maskCharData, selectionStart) {
50913 for(var i = maskCharData.length - 1; i >= 0; i--)if (maskCharData[i].displayIndex < selectionStart) {
50914 maskCharData[i].value = undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected