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

Function normalizeEvents

static/vuejs/vue.js:5843–5858  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

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

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected