()
| 105 | } |
| 106 | |
| 107 | init() { |
| 108 | if (this.initialized) { |
| 109 | console.error('Do not repeat the initialization of the datasheet store.'); |
| 110 | return; |
| 111 | } |
| 112 | this.initialized = true; |
| 113 | |
| 114 | this.bindBeforeUnload(); |
| 115 | this.socket = this.createSocket(); |
| 116 | this.database = this.createDatabase(); |
| 117 | this.resourceStashManager = new ResourceStashManager(this.store, () => { |
| 118 | return this.roomService; |
| 119 | }); |
| 120 | } |
| 121 | |
| 122 | destroy() { |
| 123 | if (!this.initialized) { |
nothing calls this directly
no test coverage detected