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

Function radixPointHandler

third_party/inputmask/inputmask.js:1836–1843  ·  view source on GitHub ↗
(input, inputValue, caretPos)

Source from the content-addressed store, hash-verified

1834 },
1835 inputFallBackEvent: function(e) {
1836 function radixPointHandler(input, inputValue, caretPos) {
1837 if (inputValue.charAt(caretPos.begin - 1) === "." && opts.radixPoint !== "") {
1838 inputValue = inputValue.split("");
1839 inputValue[caretPos.begin - 1] = opts.radixPoint.charAt(0);
1840 inputValue = inputValue.join("");
1841 }
1842 return inputValue;
1843 }
1844 function ieMobileHandler(input, inputValue, caretPos) {
1845 if (iemobile) {
1846 var inputChar = inputValue.replace(getBuffer().join(""), "");

Callers 1

maskScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected