fixes bad binding in event listener
This commit is contained in:
parent
091a1d3518
commit
521802a0c1
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@bearmetal/store",
|
"name": "@bearmetal/store",
|
||||||
"version": "0.0.3",
|
"version": "0.0.5",
|
||||||
"description": "A simple store for storing data in a JSON file.",
|
"description": "A simple store for storing data in a JSON file.",
|
||||||
"files": [
|
"files": [
|
||||||
"mod.ts",
|
"mod.ts",
|
||||||
|
4
store.ts
4
store.ts
@ -76,9 +76,9 @@ export class BearMetalStore {
|
|||||||
this.writeOut();
|
this.writeOut();
|
||||||
}
|
}
|
||||||
|
|
||||||
private readIn() {
|
private readIn = () => {
|
||||||
this.store = JSON.parse(Deno.readTextFileSync(this.storePath) || "{}");
|
this.store = JSON.parse(Deno.readTextFileSync(this.storePath) || "{}");
|
||||||
}
|
};
|
||||||
|
|
||||||
private writeOut() {
|
private writeOut() {
|
||||||
Deno.writeTextFileSync(this.storePath, JSON.stringify(this.store));
|
Deno.writeTextFileSync(this.storePath, JSON.stringify(this.store));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user