MCPcopy Create free account
hub / github.com/ampproject/amphtml / resetMaskSet

Function resetMaskSet

third_party/inputmask/inputmask.js:783–790  ·  view source on GitHub ↗
(soft)

Source from the content-addressed store, hash-verified

781 return maskset;
782 }
783 function resetMaskSet(soft) {
784 var maskset = getMaskSet();
785 maskset.buffer = undefined;
786 if (soft !== true) {
787 maskset.validPositions = {};
788 maskset.p = 0;
789 }
790 }
791 function getLastValidPosition(closestTo, strict, validPositions) {
792 var before = -1, after = -1, valids = validPositions || getMaskSet().validPositions;
793 if (closestTo === undefined) closestTo = -1;

Callers 7

refreshFromBufferFunction · 0.85
alternateFunction · 0.85
isValidFunction · 0.85
revalidateMaskFunction · 0.85
maskScopeFunction · 0.85
checkValFunction · 0.85
maskFunction · 0.85

Calls 1

getMaskSetFunction · 0.85

Tested by

no test coverage detected