@nebulars/sseengine 1.3.94 → 1.3.97

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebulars/sseengine",
3
3
  "description": "An engine for sse",
4
- "version": "1.3.94",
4
+ "version": "1.3.97",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "dev": "forage serve --name sseengine",
@@ -138,13 +138,11 @@ export default {
138
138
 
139
139
  inject: ['updateActive'],
140
140
 
141
- computed: {
141
+ methods: {
142
142
  noEditable() {
143
143
  return this.$util.$('[data-editable]').length <= 1;
144
144
  },
145
- },
146
145
 
147
- methods: {
148
146
  async copySuccess(e) {
149
147
  this.copied = true;
150
148
  await this.$util.kitchen.sleep(10);
@@ -160,7 +158,7 @@ export default {
160
158
  async cancelHandler(e) {
161
159
  this.origin = '';
162
160
  this.editable = false;
163
- if (this.noEditable) {
161
+ if (this.noEditable()) {
164
162
  await this.$store.dispatch('sseengine/STATE_UPDATE', { editable: false });
165
163
  }
166
164
  },