MCPcopy Index your code
hub / github.com/csev/py4e / makeGetSet

Function makeGetSet

code/gmane/Chart.bundle.js:1965–1975  ·  view source on GitHub ↗
(unit, keepTime)

Source from the content-addressed store, hash-verified

1963 }
1964
1965 function makeGetSet (unit, keepTime) {
1966 return function (value) {
1967 if (value != null) {
1968 get_set__set(this, unit, value);
1969 utils_hooks__hooks.updateOffset(this, keepTime);
1970 return this;
1971 } else {
1972 return get_set__get(this, unit);
1973 }
1974 };
1975 }
1976
1977 function get_set__get (mom, unit) {
1978 return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();

Callers 1

Chart.bundle.jsFile · 0.85

Calls 2

get_set__setFunction · 0.85
get_set__getFunction · 0.85

Tested by

no test coverage detected