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

Function isInputChanged

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

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected