MCPcopy Create free account
hub / github.com/TruthHun/BookStack / normalizeEvents

Function normalizeEvents

static/vuejs/vue.esm.js:5847–5862  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

5845// the whole point is ensuring the v-model callback gets called before
5846// user-attached handlers.
5847function normalizeEvents (on) {
5848 var event;
5849 /* istanbul ignore if */
5850 if (on[RANGE_TOKEN]) {
5851 // IE input[type=range] only supports `change` event
5852 event = isIE ? 'change' : 'input';
5853 on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
5854 delete on[RANGE_TOKEN];
5855 }
5856 if (on[CHECKBOX_RADIO_TOKEN]) {
5857 // Chrome fires microtasks in between click/change, leads to #4521
5858 event = isChrome ? 'click' : 'change';
5859 on[event] = [].concat(on[CHECKBOX_RADIO_TOKEN], on[event] || []);
5860 delete on[CHECKBOX_RADIO_TOKEN];
5861 }
5862}
5863
5864var target$1;
5865

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected