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

Function isInputChanged

static/vuejs/vue.js:5973–5983  ·  view source on GitHub ↗
(elm, newVal)

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls 1

toNumberFunction · 0.70

Tested by

no test coverage detected