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

Function isDirty

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

Source from the content-addressed store, hash-verified

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

Callers 1

shouldUpdateValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected