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

Function isDirty

static/vuejs/vue.runtime.esm.js:5524–5527  ·  view source on GitHub ↗
(elm, checkVal)

Source from the content-addressed store, hash-verified

5522}
5523
5524function isDirty (elm, checkVal) {
5525 // return true when textbox (.number and .trim) loses focus and its value is not equal to the updated value
5526 return document.activeElement !== elm && elm.value !== checkVal
5527}
5528
5529function isInputChanged (elm, newVal) {
5530 var value = elm.value;

Callers 1

shouldUpdateValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected