MCPcopy
hub / github.com/ampproject/amphtml / installNativeValueSetFallback

Function installNativeValueSetFallback

third_party/inputmask/inputmask.js:2527–2537  ·  view source on GitHub ↗
(npt)

Source from the content-addressed store, hash-verified

2525 }
2526 }
2527 function installNativeValueSetFallback(npt) {
2528 EventRuler.on(npt, "mouseenter", function(event) {
2529 var $input = $(this), input = this, value = input.inputmask._valueGet();
2530 if (!opts.showMaskOnHover) {
2531 return;
2532 }
2533 if (value !== getBuffer().join("")) {
2534 $input.trigger("setvalue");
2535 }
2536 });
2537 }
2538 if (!npt.inputmask.__valueGet) {
2539 if (opts.noValuePatching !== true) {
2540 if (Object.getOwnPropertyDescriptor) {

Callers 1

patchValuePropertyFunction · 0.85

Calls 4

getBufferFunction · 0.85
$Function · 0.70
onMethod · 0.45
triggerMethod · 0.45

Tested by

no test coverage detected