MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getval

Method getval

wxapp/miaoyouHome.js:264–275  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

262 return e;
263 }
264 getval(t) {
265 if (this.isSurge() || this.isLoon()) {
266 return $persistentStore.read(t);
267 } else if (this.isQuanX()) {
268 return $prefs.valueForKey(t);
269 } else if (this.isNode()) {
270 this.data = this.loaddata();
271 return this.data[t];
272 } else {
273 return this.data && this.data[t] || null;
274 }
275 }
276 setval(t, s) {
277 if (this.isSurge() || this.isLoon()) {
278 return $persistentStore.write(t, s);

Callers 2

getdataMethod · 0.45
setdataMethod · 0.45

Calls 5

isSurgeMethod · 0.45
isLoonMethod · 0.45
isQuanXMethod · 0.45
isNodeMethod · 0.45
loaddataMethod · 0.45

Tested by

no test coverage detected