From 6bee7086bc0534d46ebad4a6479edf1f6feb207e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 23 Feb 2018 19:39:28 +0100 Subject: [PATCH] Use new `mount()` functionality in example (#630) No more mucking around with `module.parent` :v: --- example/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/index.js b/example/index.js index d33aad6..5c767b1 100644 --- a/example/index.js +++ b/example/index.js @@ -15,5 +15,4 @@ app.route('#active', require('./view')) app.route('#completed', require('./view')) app.route('*', require('./view')) -if (module.parent) module.exports = app -else app.mount('body') +module.exports = app.mount('body')