(key)
| 743 | } |
| 744 | |
| 745 | getval(key) { |
| 746 | if (this.isSurge() || this.isLoon()) { |
| 747 | return $persistentStore.read(key) |
| 748 | } else if (this.isQuanX()) { |
| 749 | return $prefs.valueForKey(key) |
| 750 | } else if (this.isNode()) { |
| 751 | this.data = this.loaddata() |
| 752 | return this.data[key] |
| 753 | } else { |
| 754 | return (this.data && this.data[key]) || null |
| 755 | } |
| 756 | } |
| 757 | |
| 758 | setval(val, key) { |
| 759 | if (this.isSurge() || this.isLoon()) { |