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

Function isInputChanged

static/vuejs/vue.runtime.esm.js:5529–5539  ·  view source on GitHub ↗
(elm, newVal)

Source from the content-addressed store, hash-verified

5527}
5528
5529function isInputChanged (elm, newVal) {
5530 var value = elm.value;
5531 var modifiers = elm._vModifiers; // injected by v-model runtime
5532 if ((modifiers && modifiers.number) || elm.type === 'number') {
5533 return toNumber(value) !== toNumber(newVal)
5534 }
5535 if (modifiers && modifiers.trim) {
5536 return value.trim() !== newVal.trim()
5537 }
5538 return value !== newVal
5539}
5540
5541var domProps = {
5542 create: updateDOMProps,

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected