()
| 325 | |
| 326 | @action |
| 327 | open() { |
| 328 | const originState = this._opened |
| 329 | this._opened = true |
| 330 | // only emit when document is suspense |
| 331 | if (originState === false) { |
| 332 | this.designer.postEvent(DOCUMENT_EVENT.OPEN, this) |
| 333 | } |
| 334 | if (this._suspended) { |
| 335 | this.setSuspense(false) |
| 336 | } else { |
| 337 | this.project.checkExclusive(this) |
| 338 | } |
| 339 | return this |
| 340 | } |
| 341 | |
| 342 | @action |
| 343 | close() { |
nothing calls this directly
no test coverage detected