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

Function normalizeEvents

static/vuejs/vue.runtime.js:5395–5410  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

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

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected