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

Function dataref

docs/app/js/sanddance-app.js:141705–141709  ·  view source on GitHub ↗
(view, name)

Source from the content-addressed store, hash-verified

141703 if (el) return cursor2 == null ? el.style.removeProperty("cursor") : el.style.cursor = cursor2;
141704}
141705function dataref(view, name) {
141706 var data1 = view._runtime.data;
141707 if (!(0, _vegaUtil.hasOwnProperty)(data1, name)) (0, _vegaUtil.error)("Unrecognized data set: " + name);
141708 return data1[name];
141709}
141710function data(name, values) {
141711 return arguments.length < 2 ? dataref(this, name).values.value : change.call(this, name, (0, _vegaDataflow.changeset)().remove((0, _vegaUtil.truthy)).insert(values));
141712}

Callers 4

dataFunction · 0.70
changeFunction · 0.70
addDataListenerFunction · 0.70
removeDataListenerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected