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

Method getval

ruilanCar.js:267–278  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

265 return e;
266 }
267 getval(t) {
268 if (this.isSurge() || this.isLoon()) {
269 return $persistentStore.read(t);
270 } else if (this.isQuanX()) {
271 return $prefs.valueForKey(t);
272 } else if (this.isNode()) {
273 this.data = this.loaddata();
274 return this.data[t];
275 } else {
276 return this.data && this.data[t] || null;
277 }
278 }
279 setval(t, s) {
280 if (this.isSurge() || this.isLoon()) {
281 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