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

Function normalizeEvents

static/vuejs/vue.runtime.esm.js:5399–5414  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

5397// the whole point is ensuring the v-model callback gets called before
5398// user-attached handlers.
5399function normalizeEvents (on) {
5400 var event;
5401 /* istanbul ignore if */
5402 if (on[RANGE_TOKEN]) {
5403 // IE input[type=range] only supports `change` event
5404 event = isIE ? 'change' : 'input';
5405 on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
5406 delete on[RANGE_TOKEN];
5407 }
5408 if (on[CHECKBOX_RADIO_TOKEN]) {
5409 // Chrome fires microtasks in between click/change, leads to #4521
5410 event = isChrome ? 'click' : 'change';
5411 on[event] = [].concat(on[CHECKBOX_RADIO_TOKEN], on[event] || []);
5412 delete on[CHECKBOX_RADIO_TOKEN];
5413 }
5414}
5415
5416var target$1;
5417

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected