()
| 247 | } |
| 248 | |
| 249 | export function getCurrentPage(): Page { |
| 250 | const topmostFrame = Frame.topmost(); |
| 251 | if (topmostFrame) { |
| 252 | return topmostFrame.currentPage; |
| 253 | } |
| 254 | |
| 255 | return undefined; |
| 256 | } |
| 257 | |
| 258 | function applySelectors<T extends View>(view: T, callback: (view: T) => void) { |
| 259 | const currentPage = getCurrentPage(); |
no test coverage detected