(old)
| 96 | }; |
| 97 | }, |
| 98 | setViewState(old) { |
| 99 | return async function (viewState: ViewState, eState?: unknown) { |
| 100 | const result = await old.call(this, viewState, eState); |
| 101 | try { |
| 102 | if (this.flowEditors) { |
| 103 | for (const he of this.flowEditors) { |
| 104 | he.hide(); |
| 105 | } |
| 106 | } |
| 107 | this.flowEditors = []; |
| 108 | } catch { } |
| 109 | return result; |
| 110 | }; |
| 111 | }, |
| 112 | setEphemeralState(old) { |
| 113 | return function (state: EphemeralState) { |
| 114 | old.call(this, state); |