MCPcopy
hub / github.com/unconed/MathBox.js / set

Function set

src/Attributes.js:30–37  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

28 }.bind(this);
29
30 function set(key, value) {
31 try {
32 value = validate(key, value);
33 changed[key] = value;
34 attributes[key] = value;
35 }
36 catch (e) { throw "Exception setting '" + key + "' to '" + value + "': " + e; }
37 }
38
39 if (object === undefined || object === null) {
40 return;

Callers 1

Attributes.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected