MCPcopy Index your code
hub / github.com/microsoft/SandDance / cell

Function cell

docs/app/js/sanddance-app.js:116246–116259  ·  view source on GitHub ↗
(key, t)

Source from the content-addressed store, hash-verified

116244 // -- Cell Management -----
116245 cellkey: groupkey(),
116246 cell (key, t) {
116247 let cell2 = this.value[key];
116248 if (!cell2) {
116249 cell2 = this.value[key] = this.newcell(key, t);
116250 this._adds[this._alen++] = cell2;
116251 } else if (cell2.num === 0 && this._drop && cell2.stamp < this.stamp) {
116252 cell2.stamp = this.stamp;
116253 this._adds[this._alen++] = cell2;
116254 } else if (cell2.stamp < this.stamp) {
116255 cell2.stamp = this.stamp;
116256 this._mods[this._mlen++] = cell2;
116257 }
116258 return cell2;
116259 },
116260 newcell (key, t) {
116261 const cell3 = {
116262 key: key,

Callers 1

WindowStateFunction · 0.70

Calls 5

compileMeasuresFunction · 0.70
addMethod · 0.45
getMethod · 0.45
setMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected