()
| 17 | Events(Render(VirtualRoutes(Router(Lifecycle(Object))))) |
| 18 | ) { |
| 19 | constructor() { |
| 20 | super(); |
| 21 | |
| 22 | this.config = config(this); |
| 23 | |
| 24 | this.initLifecycle(); // Init hooks |
| 25 | this.initPlugin(); // Install plugins |
| 26 | this.callHook('init'); |
| 27 | this.initRouter(); // Add router |
| 28 | this.initRender(); // Render base DOM |
| 29 | this.initEvent(); // Bind events |
| 30 | this.initFetch(); // Fetch data |
| 31 | this.callHook('mounted'); |
| 32 | } |
| 33 | |
| 34 | initPlugin() { |
| 35 | [].concat(this.config.plugins).forEach(fn => { |
nothing calls this directly
no test coverage detected