(view: T, callback: (view: T) => void)
| 256 | } |
| 257 | |
| 258 | function applySelectors<T extends View>(view: T, callback: (view: T) => void) { |
| 259 | const currentPage = getCurrentPage(); |
| 260 | if (currentPage) { |
| 261 | const styleScope = currentPage._styleScope; |
| 262 | if (styleScope) { |
| 263 | view.parent = currentPage; |
| 264 | view._inheritStyleScope(styleScope); |
| 265 | view.onLoaded(); |
| 266 | callback(view); |
| 267 | view.onUnloaded(); |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | let button: View; |
| 273 | let label: View; |
no test coverage detected