MCPcopy Create free account
hub / github.com/devforth/painterro / loadWorklogFromString

Method loadWorklogFromString

js/worklog.js:34–42  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

32 }
33
34 loadWorklogFromString(str) {
35 const obj = JSON.parse(str);
36 if (obj) {
37 this.clearedCount = obj.clearedCount;
38 this.current = obj.current;
39 this.applyState(this.current);
40 }
41 return this.main;
42 }
43
44 changed(initial) {
45 if (this.current.prevCount - this.clearedCount > this.main.params.worklogLimit) {

Callers

nothing calls this directly

Calls 1

applyStateMethod · 0.95

Tested by

no test coverage detected