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

Function isDirty

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

Source from the content-addressed store, hash-verified

5970}
5971
5972function isDirty (elm, checkVal) {
5973 // return true when textbox (.number and .trim) loses focus and its value is not equal to the updated value
5974 return document.activeElement !== elm && elm.value !== checkVal
5975}
5976
5977function isInputChanged (elm, newVal) {
5978 var value = elm.value;

Callers 1

shouldUpdateValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected