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

Function ieMobileHandler

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

Source from the content-addressed store, hash-verified

1842 return inputValue;
1843 }
1844 function ieMobileHandler(input, inputValue, caretPos) {
1845 if (iemobile) {
1846 var inputChar = inputValue.replace(getBuffer().join(""), "");
1847 if (inputChar.length === 1) {
1848 var iv = inputValue.split("");
1849 iv.splice(caretPos.begin, 0, inputChar);
1850 inputValue = iv.join("");
1851 }
1852 }
1853 return inputValue;
1854 }
1855 var input = this, inputValue = input.inputmask._valueGet();
1856 if (getBuffer().join("") !== inputValue) {
1857 var caretPos = caret(input);

Callers 1

maskScopeFunction · 0.85

Calls 2

getBufferFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected