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

Function normalizeEvents

static/vuejs/vue.runtime.common.js:5401–5416  ·  view source on GitHub ↗
(on)

Source from the content-addressed store, hash-verified

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

Callers 1

updateDOMListenersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected