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

Function isInputEventSupported

third_party/inputmask/inputmask.js:733–741  ·  view source on GitHub ↗
(eventName)

Source from the content-addressed store, hash-verified

731 return ms;
732 }
733 function isInputEventSupported(eventName) {
734 var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
735 if (!isSupported) {
736 el.setAttribute(evName, "return;");
737 isSupported = typeof el[evName] === "function";
738 }
739 el = null;
740 return isSupported;
741 }
742 function maskScope(actionObj, maskset, opts) {
743 maskset = maskset || this.maskset;
744 opts = opts || this.opts;

Callers 2

factoryFunction · 0.85
maskScopeFunction · 0.85

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected