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

Function isDirty

static/vuejs/vue.js:5968–5971  ·  view source on GitHub ↗
(elm, checkVal)

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected