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

Function isInputChanged

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

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected