MCPcopy Index your code
hub / github.com/TruthHun/BookStack / isInputChanged

Function isInputChanged

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

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected