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

Function normalizeEvents

static/vuejs/vue.common.js:5849–5864  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

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

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected