MCPcopy Create free account
hub / github.com/microsoft/SandDance / changed

Function changed

docs/app/js/sanddance-app.js:108194–108197  ·  view source on GitHub ↗

* Indicates if tuples have been added, removed or modified. * @param {number} [flags] - The tuple types (ADD, REM or MOD) to query. * Defaults to ALL, returning true if any tuple type has changed. * @return {boolean} - Returns true if one or more queried tuple types have * changed, f

(flags)

Source from the content-addressed store, hash-verified

108192 * @return {boolean} - Returns true if one or more queried tuple types have
108193 * changed, false otherwise.
108194 */ changed (flags) {
108195 const f = flags || ALL;
108196 return f & ADD && this.add.length || f & REM && this.rem.length || f & MOD && this.mod.length;
108197 },
108198 /**
108199 * Forces a "reflow" of tuple values, such that all tuples in the backing
108200 * source are added to the MOD set, unless already present in the ADD set.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected