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

Function clearRange

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

Source from the content-addressed store, hash-verified

50896 return maskCharData[0].displayIndex;
50897}
50898function clearRange(maskCharData, selectionStart, selectionCount) {
50899 for(var i = 0; i < maskCharData.length; i++)if (maskCharData[i].displayIndex >= selectionStart) {
50900 if (maskCharData[i].displayIndex >= selectionStart + selectionCount) break;
50901 maskCharData[i].value = undefined;
50902 }
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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected