aboutsummaryrefslogtreecommitdiffstats
path: root/app/mmmfs/browser.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-10-27 13:55:21 +0000
committers-ol <s-ol@users.noreply.github.com>2018-10-27 13:55:58 +0000
commite27262bdbbf2167ff0b5a9e147c04c8333c02515 (patch)
tree7674abd298f7432c0205f815b90fc767a89cf2b1 /app/mmmfs/browser.moon
parentreoder main page (diff)
downloadmmm-e27262bdbbf2167ff0b5a9e147c04c8333c02515.tar.gz
mmm-e27262bdbbf2167ff0b5a9e147c04c8333c02515.zip
default to main content
Diffstat (limited to 'app/mmmfs/browser.moon')
-rw-r--r--app/mmmfs/browser.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mmmfs/browser.moon b/app/mmmfs/browser.moon
index de5bc7f..50da38b 100644
--- a/app/mmmfs/browser.moon
+++ b/app/mmmfs/browser.moon
@@ -7,7 +7,7 @@ class Browser
new: (@root) =>
@path = ReactiveVar {}
@path\subscribe (path) -> window.location.hash = '/' .. table.concat path, '/'
- @prop = ReactiveVar next @root.props
+ @prop = ReactiveVar (@root\find 'mmm/dom') or next @root.props
@active = @path\map (path) ->
fileder = @root
for name in *path
@@ -24,7 +24,7 @@ class Browser
fileder
- @active\subscribe (fileder) -> @prop\set next fileder.props
+ @active\subscribe (fileder) -> @prop\set (fileder\find 'mmm/dom') or next fileder.props
@tree = div {
style: {