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

Function isInputChanged

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

Source from the content-addressed store, hash-verified

5975}
5976
5977function isInputChanged (elm, newVal) {
5978 var value = elm.value;
5979 var modifiers = elm._vModifiers; // injected by v-model runtime
5980 if ((modifiers && modifiers.number) || elm.type === 'number') {
5981 return toNumber(value) !== toNumber(newVal)
5982 }
5983 if (modifiers && modifiers.trim) {
5984 return value.trim() !== newVal.trim()
5985 }
5986 return value !== newVal
5987}
5988
5989var domProps = {
5990 create: updateDOMProps,

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected