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

Function isDirty

static/vuejs/vue.common.js:5974–5977  ·  view source on GitHub ↗
(elm, checkVal)

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected