Use new mount() functionality in example (#630)
No more mucking around with `module.parent` ✌️
This commit is contained in:
+1
-2
@@ -15,5 +15,4 @@ app.route('#active', require('./view'))
|
|||||||
app.route('#completed', require('./view'))
|
app.route('#completed', require('./view'))
|
||||||
app.route('*', require('./view'))
|
app.route('*', require('./view'))
|
||||||
|
|
||||||
if (module.parent) module.exports = app
|
module.exports = app.mount('body')
|
||||||
else app.mount('body')
|
|
||||||
|
|||||||
Reference in New Issue
Block a user