MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / makeGetSet

Function makeGetSet

static/plugins/chart.js/Chart.bundle.js:15501–15511  ·  view source on GitHub ↗
(unit, keepTime)

Source from the content-addressed store, hash-verified

15499 }
15500
15501 function makeGetSet (unit, keepTime) {
15502 return function (value) {
15503 if (value != null) {
15504 set$1(this, unit, value);
15505 hooks.updateOffset(this, keepTime);
15506 return this;
15507 } else {
15508 return get(this, unit);
15509 }
15510 };
15511 }
15512
15513 function get (mom, unit) {
15514 return mom.isValid() ?

Callers 1

Chart.bundle.jsFile · 0.85

Calls 2

set$1Function · 0.85
getFunction · 0.70

Tested by

no test coverage detected