notherbase-fs 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/models/spirit.js CHANGED
@@ -14,10 +14,7 @@ export default class Spirit {
14
14
  required: false
15
15
  },
16
16
  data: {},
17
- backups: [{
18
- _lastUpdate: Number,
19
- data: {}
20
- }]
17
+ backups: []
21
18
  }));
22
19
 
23
20
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {
@@ -105,9 +105,11 @@ class ChatBox {
105
105
  this.$entry = $(`<input autocomplete="off" type="text" class="chat-entry">`).appendTo(this.$div);
106
106
  this.$send = $(`<button class="chat-send">Send</button>`).appendTo(this.$div);
107
107
 
108
- this.$send.on("click", this.sendMessage);
108
+ this.$send.on("click", (e) => {
109
+ this.sendMessage(null);
110
+ });
109
111
  this.$entry.on("keyup", (e) => {
110
- if (e.keyCode == 13) this.sendMessage();
112
+ if (e.keyCode == 13) this.sendMessage(null);
111
113
  });
112
114
  }
113
115